True if the seed is (probably) uninitialized. There's definitely false positive, but it's OK for us.
| 83 | // True if the seed is (probably) uninitialized. There's definitely false |
| 84 | // positive, but it's OK for us. |
| 85 | inline bool need_init(const FastRandSeed& seed) { |
| 86 | return seed.s[0] == 0 && seed.s[1] == 0; |
| 87 | } |
| 88 | |
| 89 | uint64_t fast_rand() { |
| 90 | if (need_init(_tls_seed)) { |
no outgoing calls
no test coverage detected