Skip to content

Commit 773fb30

Browse files
committed
Add attributation for minimal PCG-C implementation
1 parent cf81f9d commit 773fb30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cpfloat_definitions.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
return rand_r(seed_state);
6161
}
6262
#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)
6369
unsigned int thread_safe_rand(unsigned int* seedp)
6470
{
6571
unsigned int oldstate = *seedp;

0 commit comments

Comments
 (0)