1
0
Fork 0
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:
Nobuyoshi Nakada 2020-01-08 23:55:40 +09:00
parent b0e9db65c3
commit 97485302db
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -1479,6 +1479,7 @@ Init_RandomSeedCore(void)
init_seed(&mt);
explicit_bzero(initial_seed, DEFAULT_SEED_LEN);
explicit_bzero(&mt, sizeof(mt));
}
static VALUE