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:
authorCampbell Barton <ideasman42@gmail.com>2011-05-10 18:48:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-10 18:48:06 +0400
commit89a166d0deb5587ff89bf4d07f8533bf55fc5d8f (patch)
treed72e0327a80267082ad4f287e24cc28dbcf30cac /source/blender/blenlib/intern/rand.c
parent1d53ea0a6551ef84db139268abf045a328e26978 (diff)
remove some duplicate declarations
Diffstat (limited to 'source/blender/blenlib/intern/rand.c')
-rw-r--r--source/blender/blenlib/intern/rand.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/rand.c b/source/blender/blenlib/intern/rand.c
index d889c1b9bf2..9bd540e46ea 100644
--- a/source/blender/blenlib/intern/rand.c
+++ b/source/blender/blenlib/intern/rand.c
@@ -58,6 +58,8 @@ typedef unsigned long long r_uint64;
#define LOWSEED 0x330E
+extern unsigned char hash[]; // noise.c
+
/***/
struct RNG {
@@ -83,8 +85,6 @@ void rng_seed(RNG *rng, unsigned int seed) {
}
void rng_srandom(RNG *rng, unsigned int seed) {
- extern unsigned char hash[]; // noise.c
-
rng_seed(rng, seed + hash[seed & 255]);
seed= rng_getInt(rng);
rng_seed(rng, seed + hash[seed & 255]);
@@ -180,8 +180,6 @@ static RNG rng_tab[BLENDER_MAX_THREADS];
void BLI_thread_srandom(int thread, unsigned int seed)
{
- extern unsigned char hash[]; // noise.c
-
if(thread >= BLENDER_MAX_THREADS)
thread= 0;