diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 06:12:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 08:04:20 +0400 |
commit | bbfeb120fcf7ac65e9b61599f85d562acd26bcbb (patch) | |
tree | 0ff90345d920e65c11b9e5b16046ce346dcac976 /source/blender/blenlib/BLI_rand.h | |
parent | faf529d03689c0c472ee5895625cd2902915cfd6 (diff) |
Code cleanup: use strict flags for BLI_rand
Diffstat (limited to 'source/blender/blenlib/BLI_rand.h')
-rw-r--r-- | source/blender/blenlib/BLI_rand.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h index 20d5f8d8abf..011b6ea572f 100644 --- a/source/blender/blenlib/BLI_rand.h +++ b/source/blender/blenlib/BLI_rand.h @@ -47,10 +47,11 @@ void BLI_rng_free(struct RNG *rng); 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); +unsigned int BLI_rng_get_uint(struct RNG *rng); double BLI_rng_get_double(struct RNG *rng); float BLI_rng_get_float(struct RNG *rng); void BLI_rng_get_float_unit_v3(struct RNG *rng, float v[3]); -void BLI_rng_shuffle_array(struct RNG *rng, void *data, int elemSize, int numElems); +void BLI_rng_shuffle_array(struct RNG *rng, void *data, size_t elem_size, unsigned int elem_tot); /** Note that skipping is as slow as generating n numbers! */ void BLI_rng_skip(struct RNG *rng, int n); @@ -72,7 +73,7 @@ float BLI_hash_frand(unsigned int seed); * contents. This routine does not use nor modify * the state of the BLI random number generator. */ -void BLI_array_randomize(void *data, int elemSize, int numElems, unsigned int seed); +void BLI_array_randomize(void *data, size_t elem_size, unsigned int elem_tot, unsigned int seed); /** Better seed for the random number generator, using noise.c hash[] */ |