aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/other_algorithm.c
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-06-17 15:09:12 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-06-17 15:09:12 +0000
commitd0d71d818c28069a8b940b3fb115c2d21a4efba9 (patch)
tree6711002801eb337fc72e48e69cb253128e401a2a /sys/dev/random/other_algorithm.c
parent403c041316da859b91c048b5daeea61bc366e92f (diff)
Notes
Diffstat (limited to 'sys/dev/random/other_algorithm.c')
-rw-r--r--sys/dev/random/other_algorithm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/other_algorithm.c b/sys/dev/random/other_algorithm.c
index 57679f53a7da..4ed00c1156ff 100644
--- a/sys/dev/random/other_algorithm.c
+++ b/sys/dev/random/other_algorithm.c
@@ -84,7 +84,7 @@ __FBSDID("$FreeBSD$");
#endif /* _KERNEL */
static void random_other_pre_read(void);
-static void random_other_read(uint8_t *, u_int);
+static void random_other_read(uint8_t *, size_t);
static bool random_other_seeded(void);
static void random_other_process_event(struct harvest_event *);
static void random_other_init_alg(void *);
@@ -165,10 +165,10 @@ random_other_pre_read(void)
}
/*
- * void random_other_read(uint8_t *buf, u_int count)
+ * void random_other_read(uint8_t *buf, size_t count)
*
* Generate <count> bytes of output into <*buf>.
- * You may use the fact that <count> will be a multiple of
+ * You may NOT use the fact that <count> will be a multiple of
* RANDOM_BLOCKSIZE for optimization purposes.
*
* This function will always be called with your generator
@@ -176,7 +176,7 @@ random_other_pre_read(void)
* output here, then feel free to KASSERT() or panic().
*/
static void
-random_other_read(uint8_t *buf, u_int count)
+random_other_read(uint8_t *buf, size_t count)
{
RANDOM_RESEED_LOCK();