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

Function GetRandomGenerator

external/sentencepiece/src/util.cc:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204} // namespace
205
206std::mt19937 *GetRandomGenerator() {
207 static RandomGeneratorStorage *storage = new RandomGeneratorStorage;
208 return storage->Get();
209}
210#else
211std::mt19937 *GetRandomGenerator() {
212 // Thread-locals occupy stack space in every thread ever created by the

Callers 5

SampleEncodeMethod · 0.85
GumbelFunction · 0.85
SampleMethod · 0.85
SampleEncodeMethod · 0.85
LoadSentencesMethod · 0.85

Calls 3

GetRandomGeneratorSeedFunction · 0.85
GetMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected