diff options
Diffstat (limited to 'source/blender/blenlib/intern/rand.c')
-rw-r--r-- | source/blender/blenlib/intern/rand.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/blenlib/intern/rand.c b/source/blender/blenlib/intern/rand.c index 75b50caf367..9e56ce6b2cf 100644 --- a/source/blender/blenlib/intern/rand.c +++ b/source/blender/blenlib/intern/rand.c @@ -265,26 +265,6 @@ void BLI_rng_skip(RNG *rng, int n) /***/ -/* initialize with some non-zero seed */ -static RNG theBLI_rng = {611330372042337130}; - -static void ensure_rng_thread_safe(void) -{ - /* TODO(sergey): Ideally we will get rid of all rng functions which - * are using global generator. But for until then we need some way to - * catch "bad" calls at runtime. - * - * NOTE: Lots of areas are not ported, so we keep check disabled for now. - */ - // BLI_assert(BLI_thread_is_main()); -} - -float BLI_frand(void) -{ - ensure_rng_thread_safe(); - return BLI_rng_get_float(&theBLI_rng); -} - float BLI_hash_frand(unsigned int seed) { RNG rng; |