MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlRandom

Function xmlRandom

ThirdParty/libxml2/vtklibxml2/dict.c:1041–1048  ·  view source on GitHub ↗

* xmlRandom: * * Generate a pseudo-random value using the thread-local PRNG. * * Returns a random value. */

Source from the content-addressed store, hash-verified

1039 * Returns a random value.
1040 */
1041unsigned
1042xmlRandom(void) {
1043#ifdef LIBXML_THREAD_ENABLED
1044 return(xoroshiro64ss(xmlGetLocalRngState()));
1045#else
1046 return(xmlGlobalRandom());
1047#endif
1048}
1049

Callers 2

xmlDictCreateFunction · 0.85
xmlHashCreateFunction · 0.85

Calls 3

xoroshiro64ssFunction · 0.85
xmlGetLocalRngStateFunction · 0.85
xmlGlobalRandomFunction · 0.85

Tested by

no test coverage detected