summaryrefslogtreecommitdiff
path: root/thirdparty/misc/pcg.h
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-10-29 15:40:53 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-10-29 15:41:00 +0300
commit31faa1f22626b8745ed4a1541497832b6f595df2 (patch)
tree25baec4470e850e40c1ab5099ff8d9886c6087de /thirdparty/misc/pcg.h
parent13e93fe90499b3aac569ac09440c8d6056efba68 (diff)
Fix biased output of randi_range
Diffstat (limited to 'thirdparty/misc/pcg.h')
-rw-r--r--thirdparty/misc/pcg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/misc/pcg.h b/thirdparty/misc/pcg.h
index 6f42b3b094..0faab73e64 100644
--- a/thirdparty/misc/pcg.h
+++ b/thirdparty/misc/pcg.h
@@ -11,5 +11,6 @@
typedef struct { uint64_t state; uint64_t inc; } pcg32_random_t;
uint32_t pcg32_random_r(pcg32_random_t* rng);
void pcg32_srandom_r(pcg32_random_t* rng, uint64_t initstate, uint64_t initseq);
+uint32_t pcg32_boundedrand_r(pcg32_random_t* rng, uint32_t bound);
#endif // RANDOM_H