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

Added rb_random_base_init

To enclose the initialization of Random::Base part.
This commit is contained in:
Nobuyoshi Nakada 2020-09-07 18:56:39 +09:00
parent 4924011262
commit 2b07b24bdf
Notes: git 2020-09-07 20:08:34 +09:00
3 changed files with 10 additions and 2 deletions

View file

@ -71,6 +71,7 @@ typedef const rb_data_type_t rb_random_data_type_t;
#endif
void rb_random_mark(void *ptr);
void rb_random_base_init(rb_random_t *rnd);
double rb_int_pair_to_real(uint32_t a, uint32_t b, int excl);
void rb_rand_bytes_int32(rb_random_get_int32_func *, rb_random_t *, void *, size_t);
RUBY_EXTERN const rb_data_type_t rb_random_data_type;