diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-23 17:50:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-23 17:50:44 +0400 |
commit | 101660c809f0e0c6068cb7271caa122524ba38e6 (patch) | |
tree | 24dd8e3988427e07272785bf7c9003c743cb442e /source/blender/blenlib/BLI_rand.h | |
parent | da9f9c27bc35f032f283cefc51e9055e761212b9 (diff) |
code cleanup: give rng functions BLI prefix.
Diffstat (limited to 'source/blender/blenlib/BLI_rand.h')
-rw-r--r-- | source/blender/blenlib/BLI_rand.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h index 7dd6c8575c9..3bc9a3bdb32 100644 --- a/source/blender/blenlib/BLI_rand.h +++ b/source/blender/blenlib/BLI_rand.h @@ -40,18 +40,18 @@ struct RNG; typedef struct RNG RNG; -struct RNG *rng_new(unsigned int seed); -void rng_free(struct RNG *rng); +struct RNG *BLI_rng_new(unsigned int seed); +void BLI_rng_free(struct RNG *rng); -void rng_seed(struct RNG *rng, unsigned int seed); -void rng_srandom(struct RNG *rng, unsigned int seed); -int rng_getInt(struct RNG *rng); -double rng_getDouble(struct RNG *rng); -float rng_getFloat(struct RNG *rng); -void rng_shuffleArray(struct RNG *rng, void *data, int elemSize, int numElems); +void BLI_rng_seed(struct RNG *rng, unsigned int seed); +void BLI_rng_srandom(struct RNG *rng, unsigned int seed); +int BLI_rng_get_int(struct RNG *rng); +double BLI_rng_get_double(struct RNG *rng); +float BLI_rng_get_float(struct RNG *rng); +void BLI_rng_shuffle_array(struct RNG *rng, void *data, int elemSize, int numElems); /** Note that skipping is as slow as generating n numbers! */ -void rng_skip(struct RNG *rng, int n); +void BLI_rng_skip(struct RNG *rng, int n); /** Seed the random number generator */ void BLI_srand(unsigned int seed); @@ -94,7 +94,4 @@ int BLI_thread_rand(int thread); /** Allows up to BLENDER_MAX_THREADS threads to address */ float BLI_thread_frand(int thread); - - -#endif - +#endif /* __BLI_RAND_H__ */ |