mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Fix tv.sec typo in last commit. srand(tv.tv_sec * (tv.tv_usec+1))
This commit is contained in:
parent
65ed23a120
commit
3c7f51b77f
@ -592,7 +592,7 @@ main (int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
srand(tv.sec * (tv.tv_usec + 1));
|
srand(tv.tv_sec * (tv.tv_usec + 1));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* The traditional seed */
|
/* The traditional seed */
|
||||||
|
Loading…
Reference in New Issue
Block a user