[dovecot-cvs] dovecot/src/lib randgen.c,1.9,1.10

cras at procontrol.fi cras at procontrol.fi
Wed Jun 18 05:14:17 EEST 2003


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv13785

Modified Files:
	randgen.c 
Log Message:
Use RAND_bytes() rather than RAND_pseudo_bytes().



Index: randgen.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/randgen.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- randgen.c	7 May 2003 08:17:31 -0000	1.9
+++ randgen.c	18 Jun 2003 01:14:14 -0000	1.10
@@ -99,7 +99,7 @@
 
 void random_fill(void *buf, size_t size)
 {
-	if (RAND_pseudo_bytes(buf, size) != 1)
+	if (RAND_bytes(buf, size) != 1)
 		i_fatal("RAND_pseudo_bytes() failed: %s", ssl_last_error());
 }
 



More information about the dovecot-cvs mailing list