mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Renamed init_seed
as init_hash_salt
too
This commit is contained in:
parent
661e07c97e
commit
4c5eac7323
1 changed files with 2 additions and 2 deletions
4
random.c
4
random.c
|
@ -1435,7 +1435,7 @@ static union {
|
|||
} hash_salt;
|
||||
|
||||
static void
|
||||
init_seed(struct MT *mt)
|
||||
init_hash_salt(struct MT *mt)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1476,7 +1476,7 @@ Init_RandomSeedCore(void)
|
|||
fill_random_seed(initial_seed, DEFAULT_SEED_CNT);
|
||||
init_by_array(&mt, initial_seed, DEFAULT_SEED_CNT);
|
||||
|
||||
init_seed(&mt);
|
||||
init_hash_salt(&mt);
|
||||
|
||||
explicit_bzero(initial_seed, DEFAULT_SEED_LEN);
|
||||
explicit_bzero(&mt, sizeof(mt));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue