mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Also clear MT to initialize the siphash seed
This commit is contained in:
parent
b0e9db65c3
commit
97485302db
1 changed files with 1 additions and 0 deletions
1
random.c
1
random.c
|
@ -1479,6 +1479,7 @@ Init_RandomSeedCore(void)
|
|||
init_seed(&mt);
|
||||
|
||||
explicit_bzero(initial_seed, DEFAULT_SEED_LEN);
|
||||
explicit_bzero(&mt, sizeof(mt));
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue