summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 18:56:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 20:08:01 +0900
commit2b07b24bdf15e4feeb9dae94a17999070cd77121 (patch)
treebace8aba07da5edfc4e0b7196c6a3baa02e9d0af /include
parent4924011262e35e3983e245cbfcff15aee7b295f3 (diff)
Added `rb_random_base_init`
To enclose the initialization of Random::Base part.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3024
Diffstat (limited to 'include')
-rw-r--r--include/ruby/random.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/random.h b/include/ruby/random.h
index 1d45dc25b9..2e7ac75a01 100644
--- a/include/ruby/random.h
+++ b/include/ruby/random.h
@@ -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;