diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2013-08-26 18:54:39 -0400 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2013-08-26 18:54:39 -0400 |
commit | f00b6c713347155fbde7e4c68e9656d29c13c6fc (patch) | |
tree | 757be382d012da06b2d730f07d06eed41091fb67 /indra/newview/noise.h | |
parent | a45806e17cc99961ab559f544f43691ccafa9bf2 (diff) | |
parent | 6e1138585bf745f73f0bb99ca62f77eeb273f1e4 (diff) |
Merge. Pull in viewer-release after SSA merge.
Diffstat (limited to 'indra/newview/noise.h')
-rwxr-xr-x | indra/newview/noise.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/noise.h b/indra/newview/noise.h index 0923bffcf2..b3efad73c5 100755 --- a/indra/newview/noise.h +++ b/indra/newview/noise.h @@ -310,6 +310,8 @@ static void normalize3(F32 v[3]) static void init(void) { + // we want repeatable noise (e.g. for stable terrain texturing), so seed with known value + srand(42); int i, j, k; for (i = 0 ; i < B ; i++) { @@ -340,6 +342,9 @@ static void init(void) for (j = 0 ; j < 3 ; j++) g3[B + i][j] = g3[i][j]; } + + // reintroduce entropy + srand(time(NULL)); // Flawfinder: ignore } #undef B |