]> arthur.barton.de Git - netatalk.git/commitdiff
Better random seed initialization on Tru64 by Burkhard. netatalk-1-6-3rc3
authorsrittau <srittau>
Sat, 14 Jun 2003 17:12:16 +0000 (17:12 +0000)
committersrittau <srittau>
Sat, 14 Jun 2003 17:12:16 +0000 (17:12 +0000)
NEWS
etc/uams/uams_dhx_passwd.c

diff --git a/NEWS b/NEWS
index ce3a96986c7a07d5e1ca78881eeed073df08bad1..c2f17d377cb2dde238aa21504d25e9b0dd3a9415 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Changes in 1.6.3
 
 * UPD: afpd: Infrastructural support for an upcoming Kerberos 5 UAM.
        [Sam Noble]
+* UPD: uams_dhx_passwd: Better random seed in Tru64. [Burkhard Schmidt]
 * FIX: afpd: Bug in AFP connection negotiation stage. [Sam]
 * FIX: afpd: Catsearch, when Mac and unix name differ, search on attributes.
 * FIX: afpd: Files could be opened for writing on read-only filesystems.
@@ -11,7 +12,7 @@ Changes in 1.6.3
 * FIX: psf: Correct path to etc2ps.sh.
 * FIX: shell_utils: Don't distribute generated files.
 * FIX: aecho: -A option didn't work. [Chris Shiels]
-* FIX: configure: Berkeley DB path detection could be wrong. [Stefan Muenkner]
+* FIX: configure: Berkeley DB path detection could be wrong. [Stefan]
 * FIX: Automake build fixes.
 
 Changes in 1.6.2
index 3df63c4b5703406e49c865da6143bf5f3670252e..b2a4e08654ab62062c989da8a3f3d32bb8ccd971 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_dhx_passwd.c,v 1.16 2002-09-29 23:30:20 sibaz Exp $
+ * $Id: uams_dhx_passwd.c,v 1.16.2.1 2003-06-14 17:12:17 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
@@ -79,8 +79,10 @@ static int passwd_login(void *obj, struct passwd **uam_pwd,
     DH *dh;
 
 #ifdef TRU64
-    static const char rnd_seed[] = "string to make the random number generator think it has entropy";
-    RAND_seed(rnd_seed, sizeof rnd_seed);
+    int rnd_seed[256];
+    for (i = 0; i < 256; i++)
+        rnd_seed[i] = random();
+    RAND_seed(rnd_seed, sizeof(rnd_seed));
 #endif /* TRU64 */
 
     *rbuflen = 0;