| 102 | } |
| 103 | |
| 104 | UID DeterministicRandom::randomUniqueID() { |
| 105 | uint64_t x, y; |
| 106 | x = gen64(); |
| 107 | y = gen64(); |
| 108 | if (randLog && useRandLog) |
| 109 | fmt::print(randLog, "Ruid {0} {1}\n", x, y); |
| 110 | return UID(x, y); |
| 111 | } |
| 112 | |
| 113 | char DeterministicRandom::randomAlphaNumeric() { |
| 114 | static const char alphanum[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |