summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/dst/prandom.c
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-10-31 12:35:45 +0000
committerasmodai <asmodai@FreeBSD.org>2000-10-31 12:35:45 +0000
commitb5459c5b45e8d87dcdb3d5a0ddc31ca631a18480 (patch)
treeec4d7d21514a97aec7ad9db79cabb486f981b420 /contrib/bind/lib/dst/prandom.c
parent1f7d1df733cba8003f78ea73b609bf5ad47db279 (diff)
parent90887e8f5bdae690c1ceca0ae12853e5e66c5282 (diff)
downloadFreeBSD-src-b5459c5b45e8d87dcdb3d5a0ddc31ca631a18480.zip
FreeBSD-src-b5459c5b45e8d87dcdb3d5a0ddc31ca631a18480.tar.gz
This commit was generated by cvs2svn to compensate for changes in r68068,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/bind/lib/dst/prandom.c')
-rw-r--r--contrib/bind/lib/dst/prandom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/bind/lib/dst/prandom.c b/contrib/bind/lib/dst/prandom.c
index 0a66e61..dcd53435 100644
--- a/contrib/bind/lib/dst/prandom.c
+++ b/contrib/bind/lib/dst/prandom.c
@@ -1,5 +1,5 @@
#ifndef LINT
-static const char rcsid[] = "$Header: /proj/cvs/isc/bind/src/lib/dst/prandom.c,v 1.8 1999/10/13 16:39:24 vixie Exp $";
+static const char rcsid[] = "$Header: /proj/cvs/isc/bind/src/lib/dst/prandom.c,v 1.9 2000/07/17 07:36:53 vixie Exp $";
#endif
/*
* Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@@ -20,6 +20,7 @@ static const char rcsid[] = "$Header: /proj/cvs/isc/bind/src/lib/dst/prandom.c,v
#include "port_before.h"
+#include <assert.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
@@ -203,6 +204,7 @@ do_time(dst_work *work)
zone = (struct timezone *) tmp;
mtime = (struct timeval *)(tmp + sizeof(struct timezone));
gettimeofday(mtime, zone);
+ assert(mtime->tv_usec >= 0 && mtime->tv_usec < 1000000);
cnt = sizeof(tmp);
my_digest(work, tmp, sizeof(tmp));
OpenPOWER on IntegriCloud