summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-10-16 05:26:15 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:03 +0100
commite19d281cb74054baf017f710ecb83d461e4a0971 (patch)
tree564f48cb5045b15182afeef5b28e9a20bfd748ae /source4
parent6554433fc227baab93398576db703c91db1541f2 (diff)
downloadsamba-e19d281cb74054baf017f710ecb83d461e4a0971.tar.gz
samba-e19d281cb74054baf017f710ecb83d461e4a0971.tar.bz2
samba-e19d281cb74054baf017f710ecb83d461e4a0971.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/util/genrand.c6
1 files changed, 0 insertions, 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;
}