MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / random_u64_seed

Function random_u64_seed

src/framework/runtime/options.cpp:206–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206uint64_t random_u64_seed() {
207 std::random_device random_device;
208 const uint64_t hi = static_cast<uint64_t>(random_device()) << 32U;
209 const uint64_t lo = static_cast<uint64_t>(random_device());
210 const auto now = std::chrono::high_resolution_clock::now().time_since_epoch().count();
211 return hi ^ lo ^ static_cast<uint64_t>(now);
212}
213
214uint32_t random_u32_seed() {
215 return static_cast<uint32_t>(random_u64_seed());

Callers 4

random_u32_seedFunction · 0.85
parse_v2_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected