Fix tv.sec typo in last commit. srand(tv.tv_sec * (tv.tv_usec+1))

This commit is contained in:
Kurt Zeilenga 1999-08-09 19:06:29 +00:00
parent 65ed23a120
commit 3c7f51b77f

View File

@ -592,7 +592,7 @@ main (int argc, char *argv[])
{
struct timeval tv;
gettimeofday (&tv, NULL);
srand(tv.sec * (tv.tv_usec + 1));
srand(tv.tv_sec * (tv.tv_usec + 1));
}
#else
/* The traditional seed */