Improve seed()

Do not rehash the hash.
This commit is contained in:
Landon Curt Noll
2021-12-07 22:05:47 -08:00
parent dd0610db0a
commit 9f3a7817d3

3
seed.c
View File

@@ -677,9 +677,6 @@ pseudo_seed(void)
/*
* hash all the data from random() and friends
*/
hash_val = private_hash64_buf(hash_val,
(char *)&past_hash,
sizeof(past_hash));
hash_val = private_hash64_buf(hash_val,
(char *)random_before,
sizeof(random_before));