mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Improve seed()
Do not rehash the hash.
This commit is contained in:
3
seed.c
3
seed.c
@@ -677,9 +677,6 @@ pseudo_seed(void)
|
|||||||
/*
|
/*
|
||||||
* hash all the data from random() and friends
|
* 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,
|
hash_val = private_hash64_buf(hash_val,
|
||||||
(char *)random_before,
|
(char *)random_before,
|
||||||
sizeof(random_before));
|
sizeof(random_before));
|
||||||
|
Reference in New Issue
Block a user