svn commit: samba r25661 - in branches/SAMBA_4_0/source/lib/util: .

abartlet at samba.org abartlet at samba.org
Tue Oct 16 05:26:16 GMT 2007


Author: abartlet
Date: 2007-10-16 05:26:15 +0000 (Tue, 16 Oct 2007)
New Revision: 25661

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25661

Log:
We don't actually need to know with DEBUG(0, ... every time we ask for
some random bytes.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/util/genrand.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/genrand.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/genrand.c	2007-10-16 01:27:15 UTC (rev 25660)
+++ branches/SAMBA_4_0/source/lib/util/genrand.c	2007-10-16 05:26:15 UTC (rev 25661)
@@ -173,8 +173,6 @@
 		}
 		if (fd != -1
 		    && (read(fd, seed_inbuf, sizeof(seed_inbuf)) == sizeof(seed_inbuf))) {
-			DEBUG(0, ("do_reseed: need %d\n", sizeof(seed_inbuf)));
-			call_backtrace();
 			seed_random_stream(seed_inbuf, sizeof(seed_inbuf));
 			return fd;
 		}
@@ -233,8 +231,6 @@
 			if (urand_fd == -1) {
 				urand_fd = open( "/dev/urandom", O_RDONLY,0);
 			}
-			DEBUG(0, ("generate_random_buffer: need %d\n", len));
-			call_backtrace();
 			if(urand_fd != -1 && (read(urand_fd, out, len) == len)) {
 				return;
 			}
@@ -272,8 +268,6 @@
 	if (urand_fd == -1) {
 		urand_fd = open( "/dev/urandom", O_RDONLY,0);
 	}
-	DEBUG(0, ("generate_random_buffer: need %d\n", len));
-	call_backtrace();
 	if(urand_fd != -1 && (read(urand_fd, out, len) == len)) {
 		return;
 	}



More information about the samba-cvs mailing list