CentOS compilation fixes

This commit is contained in:
Luca Deri 2020-06-08 15:34:35 +02:00 committed by Logan007
parent 9d9695ebdb
commit 62097dee26

View File

@ -29,7 +29,7 @@ static uint64_t splitmix64 (struct splitmix64_state_t *state) {
int n2n_srand (uint64_t seed) { int n2n_srand (uint64_t seed) {
uint8_t i;
struct splitmix64_state_t smstate = {seed}; struct splitmix64_state_t smstate = {seed};
rn_current_state.a = 0; rn_current_state.a = 0;
@ -46,7 +46,7 @@ int n2n_srand (uint64_t seed) {
} }
/* stabilize in unlikely case of weak state with only a few bits set */ /* stabilize in unlikely case of weak state with only a few bits set */
for (uint8_t i = 0; i < 32; i++) for(i = 0; i < 32; i++)
n2n_rand(); n2n_rand();
return 0; return 0;