Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-10-09 19:12:32 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-10-09 19:12:32 +0400
commit5f6e47e76772760d4d5ddc729107ea7c29a17b1b (patch)
tree00e5df0b1ba8817325b59dded3623f85501e39de /source/blender/blenlib/intern/rand.c
parent928be3013aac4527be44eadd3d662b4b4f05053f (diff)
Minor cleanup.
* Use pie direction, not draw type for pie item collision * Strict function definitions. * Initialize random array with system time
Diffstat (limited to 'source/blender/blenlib/intern/rand.c')
-rw-r--r--source/blender/blenlib/intern/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/rand.c b/source/blender/blenlib/intern/rand.c
index 70780f9d47d..59ccf381f29 100644
--- a/source/blender/blenlib/intern/rand.c
+++ b/source/blender/blenlib/intern/rand.c
@@ -255,7 +255,7 @@ RNG_THREAD_ARRAY *BLI_rng_threaded_new(void)
RNG_THREAD_ARRAY *rngarr = MEM_mallocN(sizeof(RNG_THREAD_ARRAY), "random_array");
for (i = 0; i < BLENDER_MAX_THREADS; i++) {
- BLI_rng_srandom(&rngarr->rng_tab[i], (unsigned int)(rngarr->rng_tab[i].X * 257));
+ BLI_rng_srandom(&rngarr->rng_tab[i], (unsigned int)clock());
}
return rngarr;