From e19501436a92cd48eba2ff47d90fa49c661ec8d8 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 16 Apr 2001 23:07:34 +0000 Subject: [PATCH] seed random(), so that the message serial number is not always the same. --- bin/rndc/rndc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/rndc/rndc.c b/bin/rndc/rndc.c index b1f6a76c0a..5ddb10b4f6 100644 --- a/bin/rndc/rndc.c +++ b/bin/rndc/rndc.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rndc.c,v 1.56 2001/04/16 22:00:21 bwelling Exp $ */ +/* $Id: rndc.c,v 1.57 2001/04/16 23:07:34 bwelling Exp $ */ /* * Principal Author: DCL @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -280,6 +281,7 @@ rndc_connected(isc_task_t *task, isc_event_t *event) { fatal("connect failed: %s", isc_result_totext(sevent->result)); isc_stdtime_get(&now); + srandom(now + isc_thread_self()); DO("create message", isccc_cc_createmessage(1, NULL, NULL, random(), now, now + 60, &request)); data = isccc_alist_lookup(request, "_data");