10 uint64_t shuffle_table[2];
13 shuffle_table[0] = rand();
14 shuffle_table[1] = rand();
19 uint64_t s1 = shuffle_table[0];
20 uint64_t s0 = shuffle_table[1];
21 uint64_t result = s0 + s1;
22 shuffle_table[0] = s0;
24 shuffle_table[1] = s1 ^ s0 ^ (s1 >> 18) ^ (s0 >> 5);
25 return (
float)result / (float)((uint64_t)0xffffffff);
simple random generator
Definition: random.hpp:8
QuIDS utility function and variable namespace.
Definition: algorithm.hpp:6