BIND 10 master, updated. 3dfd3b25e2ed142ce86126c411e78194d890679f [1812] remove newline
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Mar 19 17:32:45 UTC 2012
The branch, master has been updated
via 3dfd3b25e2ed142ce86126c411e78194d890679f (commit)
via 7b7252d0442b7cc618094784d1b243d09309791f (commit)
from 823f30307bae21675418262a1b423b3bfbbdca93 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3dfd3b25e2ed142ce86126c411e78194d890679f
Author: Jelte Jansen <jelte at isc.org>
Date: Mon Mar 19 16:30:16 2012 +0100
[1812] remove newline
commit 7b7252d0442b7cc618094784d1b243d09309791f
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Mar 19 17:43:57 2012 +0530
[1812] Initialize srandom() with seed other than 0 when not using a random seed
This is because random() always returns 0 on OpenBSD 5.0, when
the RNG is initialized with srandom(0).
-----------------------------------------------------------------------
Summary of changes:
src/lib/nsas/hash.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/nsas/hash.cc b/src/lib/nsas/hash.cc
index dbd8eec..ac2af15 100644
--- a/src/lib/nsas/hash.cc
+++ b/src/lib/nsas/hash.cc
@@ -99,9 +99,8 @@ Hash::Hash(uint32_t tablesize, uint32_t maxkeylen, bool randomise) :
if (randomise) {
init_value.curtime = time(NULL);
- }
- else {
- init_value.seed = 0;
+ } else {
+ init_value.seed = 1;
}
srandom(init_value.seed);
More information about the bind10-changes
mailing list