NTP - Network Time Protocol
| Age |
Author |
Annotate |
| 14 years |
davehart@hartbrothers.com |
1.87 |
--- 1.86/util/ntp-keygen.c 2011-10-02 22:12:46 +00:00
+++ 1.87/util/ntp-keygen.c 2011-10-31 03:52:18 +00:00
@@ -347,6 +347,7 @@
passwd1 = hostbuf;
passwd2 = NULL;
GETTIMEOFDAY(&tv, NULL);
+ ntp_srandom((u_long)(tv.tv_sec + tv.tv_usec));
epoch = tv.tv_sec;
fstamp = (u_int)(epoch + JAN_1970);
@@ -817,7 +818,6 @@
#endif /* OPENSSL */
str = fheader("MD5key", id, groupname);
- ntp_srandom((u_long)epoch);
for (i = 1; i <= MD5KEYS; i++) {
for (j = 0; j < MD5SIZE; j++) {
int temp;