Blender Git Commit Log

Git Commits -> Revision b236400

Revision b236400 by Sergey Sharybin (master)
June 12, 2018, 13:51 (GMT)
Math: Remove unused functions which are not safe for threading

All areas are toy use "local" number generator, in order to keep
behavior predictable and threadable. This is what BLI_rng_() API
is for.

There are still lots of usages of BLI_frand(), which are to be
ported to BLI_rng_get_float(). but that is somewhat involved.

For the time being, remove unsafe API, so new areas have zero
chance using it.

Commit Details:

Full Hash: b236400ff5b6b18f0b81fb326b95719be7ebe379
Parent Commit: 6231a07
Lines Changed: +1, -25

2 Modified Paths:

/source/blender/blenlib/BLI_rand.h (+1, -7) (Diff)
/source/blender/blenlib/intern/rand.c (+0, -18) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021