aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/dummy_rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/random/dummy_rng.c')
-rw-r--r--sys/dev/random/dummy_rng.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/random/dummy_rng.c b/sys/dev/random/dummy_rng.c
index a7ca4b3460db..e78f5a8d0a68 100644
--- a/sys/dev/random/dummy_rng.c
+++ b/sys/dev/random/dummy_rng.c
@@ -82,19 +82,13 @@ dummy_random_init(void)
*
* Caveat Emptor.
*/
-u_int
+void
dummy_random_read_phony(uint8_t *buf, u_int count)
{
/* If no entropy device is loaded, don't spam the console with warnings */
- static int warned = 0;
u_long randval;
size_t size, i;
- if (!warned) {
- log(LOG_WARNING, "random device not loaded/active; using insecure pseudo-random number generator\n");
- warned = 1;
- }
-
/* srandom() is called in kern/init_main.c:proc0_post() */
/* Fill buf[] with random(9) output */
@@ -103,8 +97,6 @@ dummy_random_read_phony(uint8_t *buf, u_int count)
size = MIN(count - i, sizeof(randval));
memcpy(buf + i, &randval, (size_t)size);
}
-
- return (count);
}
struct random_adaptor randomdev_dummy = {