summaryrefslogtreecommitdiff
path: root/ext/-test-
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 /ext/-test-
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 'ext/-test-')
-rw-r--r--ext/-test-/random/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/random/loop.c b/ext/-test-/random/loop.c
index 4f7c8005002..ec4eff013e7 100644
--- a/ext/-test-/random/loop.c
+++ b/ext/-test-/random/loop.c
@@ -38,7 +38,7 @@ loop_alloc(VALUE klass)
{
rand_loop_t *rnd;
VALUE obj = TypedData_Make_Struct(klass, rand_loop_t, &random_loop_type, rnd);
- rnd->base.seed = INT2FIX(0);
+ rb_random_base_init(&rnd->base);
return obj;
}