summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_random.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-12-26 20:42:37 +0000
committerphk <phk@FreeBSD.org>1997-12-26 20:42:37 +0000
commitcadc59e5110e8e649cc8d99ce11c79fe858c4b45 (patch)
tree474747d624ae5622037a2828941e9fc5c7bc85f6 /sys/kern/kern_random.c
parent7682f91921121238704e2fc4647bc48c089abf88 (diff)
downloadFreeBSD-src-cadc59e5110e8e649cc8d99ce11c79fe858c4b45.zip
FreeBSD-src-cadc59e5110e8e649cc8d99ce11c79fe858c4b45.tar.gz
Rename "i586_ctr" to "tsc" (both upper and lower case instances).
Fix a couple of printfs too. Warning: This changes the names of a couple of kernel options!
Diffstat (limited to 'sys/kern/kern_random.c')
-rw-r--r--sys/kern/kern_random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_random.c b/sys/kern/kern_random.c
index 3c4f9eb..f066949 100644
--- a/sys/kern/kern_random.c
+++ b/sys/kern/kern_random.c
@@ -1,7 +1,7 @@
/*
* random_machdep.c -- A strong random number generator
*
- * $Id: random_machdep.c,v 1.18 1997/09/14 03:19:15 peter Exp $
+ * $Id: random_machdep.c,v 1.19 1997/10/28 15:58:13 bde Exp $
*
* Version 0.95, last modified 18-Oct-95
*
@@ -191,7 +191,7 @@ add_timer_randomness(struct random_bucket *r, struct timer_rand_state *state,
u_int32_t time;
#if defined(I586_CPU) || defined(I686_CPU)
- if (i586_ctr_freq != 0) {
+ if (tsc_freq != 0) {
num ^= (u_int32_t) rdtsc() << 16;
r->entropy_count += 2;
} else {
OpenPOWER on IntegriCloud