Renamed init_seed
as init_hash_salt
too
This commit is contained in:
parent
661e07c97e
commit
4c5eac7323
4
random.c
4
random.c
@ -1435,7 +1435,7 @@ static union {
|
|||||||
} hash_salt;
|
} hash_salt;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_seed(struct MT *mt)
|
init_hash_salt(struct MT *mt)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -1476,7 +1476,7 @@ Init_RandomSeedCore(void)
|
|||||||
fill_random_seed(initial_seed, DEFAULT_SEED_CNT);
|
fill_random_seed(initial_seed, DEFAULT_SEED_CNT);
|
||||||
init_by_array(&mt, 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(initial_seed, DEFAULT_SEED_LEN);
|
||||||
explicit_bzero(&mt, sizeof(mt));
|
explicit_bzero(&mt, sizeof(mt));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user