| 66 | } |
| 67 | |
| 68 | static void InitFastRandomSeed() { |
| 69 | static pthread_once_t once = PTHREAD_ONCE_INIT; |
| 70 | pthread_once(&once, InitFastRandomSeedAtFork); |
| 71 | |
| 72 | ResetFastRandomSeed(); |
| 73 | } |
| 74 | |
| 75 | const uint32_t OtherUtils::FastRand() { |
| 76 | if (!seed_thread_safe.init) { |
no test coverage detected