diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 20:29:37 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 20:29:37 +0000 |
commit | 9abc1233da1c5c9cfe7cd76fa196589cf2094963 (patch) | |
tree | c5a311cc237d6711ae86f117ccacabf4912340f7 /random.c | |
parent | c0033c08c9812c19eadd7aa5ce06d5f5ce656ced (diff) | |
download | ruby-9abc1233da1c5c9cfe7cd76fa196589cf2094963.tar.gz |
* random.c (init_randomseed): remove "initial" argument. It never
be used from outside of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1453,9 +1453,11 @@ static union { } sipseed; static VALUE -init_randomseed(struct MT *mt, uint32_t initial[DEFAULT_SEED_CNT]) +init_randomseed(struct MT *mt) { + uint32_t initial[DEFAULT_SEED_CNT]; VALUE seed; + fill_random_seed(initial); init_by_array(mt, initial, DEFAULT_SEED_CNT); seed = make_seed_value(initial); @@ -1467,9 +1469,8 @@ void Init_RandomSeed(void) { rb_random_t *r = &default_rand; - uint32_t initial[DEFAULT_SEED_CNT]; struct MT *mt = &r->mt; - VALUE seed = init_randomseed(mt, initial); + VALUE seed = init_randomseed(mt); int i; hashseed = genrand_int32(mt); |