Commit c1e0ecee authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix FillWhiteNoise

parent 8a902627
......@@ -139,11 +139,11 @@ namespace Vmath
{
// Protect the static vars here and in ran2
boost::mutex::scoped_lock l(mutex);
long seed = long(outseed);
while( n-- )
{
static int iset = 0;
static T gset;
long seed = long(outseed);
T fac, rsq, v1, v2;
if (iset == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment