* xmlRandom: * * Generate a pseudo-random value using the thread-local PRNG. * * Returns a random value. */
| 1039 | * Returns a random value. |
| 1040 | */ |
| 1041 | unsigned |
| 1042 | xmlRandom(void) { |
| 1043 | #ifdef LIBXML_THREAD_ENABLED |
| 1044 | return(xoroshiro64ss(xmlGetLocalRngState())); |
| 1045 | #else |
| 1046 | return(xmlGlobalRandom()); |
| 1047 | #endif |
| 1048 | } |
| 1049 |
no test coverage detected