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

Function GetRandomGeneratorSeed

external/sentencepiece/src/util.cc:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34uint32_t GetRandomGeneratorSeed() {
35 try {
36 return g_seed == kDefaultSeed ? std::random_device{}() : g_seed.load();
37 } catch (...) {
38 return g_seed.load();
39 }
40}
41
42namespace {
43std::shared_ptr<const std::string> *GetSharedDataDir() {

Callers 3

GetMethod · 0.85
GetRandomGeneratorFunction · 0.85
ReservoirSamplerMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected