X-Git-Url: https://git.bts.cx/benzene.git/blobdiff_plain/a2fade1d5540d1017c26fd2d2f7733915088ff94..76064b2ae48e49da4341490dd00f8977ea540fd8:/src/bz/math/random.c?ds=sidebyside diff --git a/src/bz/math/random.c b/src/bz/math/random.c index 30f6e6c..368d269 100644 --- a/src/bz/math/random.c +++ b/src/bz/math/random.c @@ -41,3 +41,7 @@ void *bzRandomArrayValue(size_t count, size_t arrayTypeSize, void *array) { uint32_t idx = bzRandomInteger(count); return array + idx * arrayTypeSize; } + +void bzRandomReseed(uint64_t seed) { + pcg32_srandom(seed, 1); +}