1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added get_real interface

This commit is contained in:
Nobuyoshi Nakada 2020-04-15 00:52:08 +09:00
parent c449b9b02f
commit d6ec0ef59b
Notes: git 2020-09-07 20:08:35 +09:00
4 changed files with 20 additions and 0 deletions

View file

@ -28,12 +28,14 @@ typedef struct {
typedef void rb_random_init_func(rb_random_t *, const uint32_t *, size_t);
typedef unsigned int rb_random_get_int32_func(rb_random_t *);
typedef void rb_random_get_bytes_func(rb_random_t *, void *, size_t);
typedef double rb_random_get_real_func(rb_random_t *, int);
typedef struct {
size_t default_seed_bits;
rb_random_init_func *init;
rb_random_get_int32_func *get_int32;
rb_random_get_bytes_func *get_bytes;
rb_random_get_real_func *get_real;
} rb_random_interface_t;
#define rb_rand_if(obj) \