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

Function xmlGlobalRandom

ThirdParty/libxml2/vtklibxml2/dict.c:1023–1032  ·  view source on GitHub ↗

* xmlGlobalRandom: * * Generate a pseudo-random value using the global PRNG. * * Returns a random value. */

Source from the content-addressed store, hash-verified

1021 * Returns a random value.
1022 */
1023unsigned
1024xmlGlobalRandom(void) {
1025 unsigned ret;
1026
1027 xmlMutexLock(&xmlRngMutex);
1028 ret = xoroshiro64ss(globalRngState);
1029 xmlMutexUnlock(&xmlRngMutex);
1030
1031 return(ret);
1032}
1033
1034/*
1035 * xmlRandom:

Callers 3

xmlRandomFunction · 0.85
xmlInitGlobalsInternalFunction · 0.85
xmlInitGlobalStateFunction · 0.85

Calls 3

xmlMutexLockFunction · 0.85
xoroshiro64ssFunction · 0.85
xmlMutexUnlockFunction · 0.85

Tested by

no test coverage detected