mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
CentOS compilation fixes
This commit is contained in:
parent
9d9695ebdb
commit
62097dee26
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user