diff options
Diffstat (limited to 'source/MersenneTwister.h')
-rw-r--r-- | source/MersenneTwister.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/MersenneTwister.h b/source/MersenneTwister.h index e87fe0f9b..cdb1730c0 100644 --- a/source/MersenneTwister.h +++ b/source/MersenneTwister.h @@ -238,6 +238,8 @@ inline void MTRand::seed() // Otherwise use a hash of time() and clock() values
// First try getting an array from /dev/urandom
+
+ /* // Commented out by FakeTruth because doing this 200 times a tick is SUUUUPEERRR SLOW!!~~!ÕNe
FILE* urandom = fopen( "/dev/urandom", "rb" );
if( urandom )
{
@@ -250,6 +252,7 @@ inline void MTRand::seed() fclose(urandom);
if( success ) { seed( bigSeed, N ); return; }
}
+ */
// Was not successful, so use time() and clock() instead
seed( hash( time(NULL), clock() ) );
|