Skip to content

Commit

Permalink
set RNG seed to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rtv committed Feb 7, 2013
1 parent 02504bf commit b59d741
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion universe.cc
Expand Up @@ -123,7 +123,10 @@ Robot::Robot()
void Uni::Init( int argc, char** argv )
{
// seed the random number generator with the current time
srand48(time(NULL));
// srand48(time(NULL));

// seed the random number generator with a constant for repeatability
srand48(0);

bool quiet = false; // controls output verbosity

Expand Down

0 comments on commit b59d741

Please sign in to comment.