We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf81f9d commit 773fb30Copy full SHA for 773fb30
src/cpfloat_definitions.h
@@ -60,6 +60,12 @@
60
return rand_r(seed_state);
61
}
62
#endif /* #ifdef _WIN32 */
63
+
64
+// Implementation below is available at:
65
+// https://www.pcg-random.org/download.html
66
+//
67
+// *Really* minimal PCG32 code / (c) 2014 M.E. O'Neill / pcg-random.org
68
+// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website)
69
unsigned int thread_safe_rand(unsigned int* seedp)
70
{
71
unsigned int oldstate = *seedp;
0 commit comments