the final solution to the randomness problem
This commit is contained in:
1 parent
f63b445e52
commit
a7cb9a7383
5 files changed
+8
-4
No files matched your search
+3
-1
@@ -24,6 +24,8 @@ void jsw_seed ( unsigned long s )
|
||||
* ( x[i - 1] ^ ( x[i - 1] >> 30 ) ) + i );
|
||||
x[i] &= 0xffffffffUL;
|
||||
}
|
||||
|
||||
next = 0;
|
||||
}
|
||||
|
||||
/* Mersenne Twister */
|
||||
@@ -70,4 +72,4 @@ unsigned jsw_time_seed()
|
||||
seed = seed * ( UCHAR_MAX + 2U ) + p[i];
|
||||
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user