diff options
| author | Nick Sayer <nsayer@FreeBSD.org> | 2001-05-16 18:32:46 +0000 |
|---|---|---|
| committer | Nick Sayer <nsayer@FreeBSD.org> | 2001-05-16 18:32:46 +0000 |
| commit | 8183ac8f53435e2a07b452ca4877431aec6dd82b (patch) | |
| tree | 9b61f64e23c147fc4049f54aafff89533605edf8 | |
| parent | 60f581768d71a5fb42a4cd423e6541a7911b4c4c (diff) | |
Notes
| -rw-r--r-- | contrib/telnet/libtelnet/pk.c | 7 | ||||
| -rw-r--r-- | crypto/telnet/libtelnet/pk.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/contrib/telnet/libtelnet/pk.c b/contrib/telnet/libtelnet/pk.c index 9af8915148a7..a4773ef6e79a 100644 --- a/contrib/telnet/libtelnet/pk.c +++ b/contrib/telnet/libtelnet/pk.c @@ -117,6 +117,7 @@ void getseed(seed, seedsize) char *seed; int seedsize; { +#if 0 int i,f; int rseed; struct timeval tv; @@ -140,6 +141,12 @@ void getseed(seed, seedsize) for (i = 0; i < seedsize; i++) { seed[i] = (lrand48() & 0xff); } +#else + srandomdev(); + for (i = 0; i < seedsize; i++) { + seed[i] = random() & 0xff; + } +#endif } diff --git a/crypto/telnet/libtelnet/pk.c b/crypto/telnet/libtelnet/pk.c index 9af8915148a7..a4773ef6e79a 100644 --- a/crypto/telnet/libtelnet/pk.c +++ b/crypto/telnet/libtelnet/pk.c @@ -117,6 +117,7 @@ void getseed(seed, seedsize) char *seed; int seedsize; { +#if 0 int i,f; int rseed; struct timeval tv; @@ -140,6 +141,12 @@ void getseed(seed, seedsize) for (i = 0; i < seedsize; i++) { seed[i] = (lrand48() & 0xff); } +#else + srandomdev(); + for (i = 0; i < seedsize; i++) { + seed[i] = random() & 0xff; + } +#endif } |
