From e19d281cb74054baf017f710ecb83d461e4a0971 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 16 Oct 2007 05:26:15 +0200 Subject: r25661: We don't actually need to know with DEBUG(0, ... every time we ask for some random bytes. Andrew Bartlett (This used to be commit 606c82f6254b8dc6fb32740a7bb55a1989081fe7) --- source4/lib/util/genrand.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source4/lib/util/genrand.c b/source4/lib/util/genrand.c index 31c0fce633..5751db23d6 100644 --- a/source4/lib/util/genrand.c +++ b/source4/lib/util/genrand.c @@ -173,8 +173,6 @@ static int do_reseed(bool use_fd, int fd) } 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 @@ _PUBLIC_ void generate_random_buffer(uint8_t *out, int len) 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 @@ _PUBLIC_ void generate_secret_buffer(uint8_t *out, int len) 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; } -- cgit