aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-04-21 11:02:36 +0000
committerMark Murray <markm@FreeBSD.org>2002-04-21 11:02:36 +0000
commit815eb79cb8aeda7b35099acfb2e30a6d4989d2f8 (patch)
treed26c227b84961629f1654cb3151b2f6cd47bdb03 /sys/dev/random
parent28e7ba4d11e2697e2ff5653d9963f915c89641c5 (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/harvest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c
index 1e2275d60744..b6f3fba52742 100644
--- a/sys/dev/random/harvest.c
+++ b/sys/dev/random/harvest.c
@@ -110,7 +110,7 @@ read_random_phony(void *buf, int count)
srandom((u_long)get_cyclecount());
/* Fill buf[] with random(9) output */
- for (i = 0; i < count; i+= (size_t)sizeof(u_long)) {
+ for (i = 0; i < count; i+= (int)sizeof(u_long)) {
randval = random();
size = (count - i) < (int)sizeof(u_long)
? (count - i)