X-Git-Url: https://git.bts.cx/benzene.git/blobdiff_plain/a2fade1d5540d1017c26fd2d2f7733915088ff94..76064b2ae48e49da4341490dd00f8977ea540fd8:/src/bz/math/random.h diff --git a/src/bz/math/random.h b/src/bz/math/random.h index 4a3df98..e96f597 100644 --- a/src/bz/math/random.h +++ b/src/bz/math/random.h @@ -14,6 +14,8 @@ extern int32_t bzRandomIntegerRange(int32_t v1, int32_t v2); extern void *bzRandomArrayValue(size_t count, size_t arrayTypeSize, void *array); //extern void *bzRandomArrayValue(pcg32_random_t *rng, size_t count, size_t arrayTypeSize, void *array); +extern void bzRandomReseed(uint64_t seed); + #define bzRandom(T, ...) (*((T *)bzRandomArrayValue(sizeof((T[]){__VA_ARGS__})/sizeof(T), sizeof(T), (T[]){__VA_ARGS__}))) #ifdef __cplusplus