]> git.sur5r.net Git - openldap/commitdiff
Really fix gettimeofday usage.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 27 Oct 1999 21:53:41 +0000 (21:53 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 27 Oct 1999 21:53:41 +0000 (21:53 +0000)
libraries/liblutil/entropy.c

index 56502d32178c810050950b80299f93db4ca89e4e..b47749f3d64bf9bf418c8a5e04471b7359f41974 100644 (file)
@@ -116,7 +116,7 @@ int lutil_entropy( char *buf, int nbytes )
 
                        /* hopefully has good resolution */
 #ifdef HAVE_GETTIMEOFDAY
-                       (void) gettimeofday( &rdata.tv, sizeof( rdata.tv ) );
+                       (void) gettimeofday( &rdata.tv, NULL );
 #else
                        (void) time( &rdata.time );
 #endif