| 33 | } // anonymous namespace |
| 34 | |
| 35 | uint64 New64() { |
| 36 | static std::mt19937_64* rng = InitRngWithRandomSeed(); |
| 37 | static mutex mu(LINKER_INITIALIZED); |
| 38 | mutex_lock l(mu); |
| 39 | return (*rng)(); |
| 40 | } |
| 41 | |
| 42 | uint64 New64DefaultSeed() { |
| 43 | static std::mt19937_64 rng = InitRngWithDefaultSeed(); |