MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / GenerateRandomNumber

Function GenerateRandomNumber

src/OpenColorIO/Platform.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208{
209
210int GenerateRandomNumber()
211{
212 // Note: Read https://isocpp.org/files/papers/n3551.pdf for details.
213
214 static std::mt19937 engine{};
215 static std::uniform_int_distribution<> dist{};
216
217 return dist(engine);
218}
219
220}
221

Callers 1

CreateTempFilenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected