summaryrefslogtreecommitdiff
path: root/sys/dev/pv/viornd.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2018-04-28 15:45:00 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2018-04-28 15:45:00 +0000
commitd2aaab80e37b4e76e5cd539983916e5d7dbaf773 (patch)
treee0d12c3bee51150c5e294631e23df47429d120d4 /sys/dev/pv/viornd.c
parent88c894b365edc9ba3d99f1dba14020c90bf81e72 (diff)
replace add_*_randomness with enqueue_randomness()
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
Diffstat (limited to 'sys/dev/pv/viornd.c')
-rw-r--r--sys/dev/pv/viornd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/viornd.c b/sys/dev/pv/viornd.c
index dc0a43738b7..9d1e8c60938 100644
--- a/sys/dev/pv/viornd.c
+++ b/sys/dev/pv/viornd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viornd.c,v 1.1 2017/01/21 11:22:48 reyk Exp $ */
+/* $OpenBSD: viornd.c,v 1.2 2018/04/28 15:44:59 jasper Exp $ */
/*
* Copyright (c) 2014 Stefan Fritsch <sf@sfritsch.de>
@@ -172,7 +172,7 @@ viornd_vq_done(struct virtqueue *vq)
printf("%s: got %d bytes of entropy\n", __func__, len);
#endif
for (i = 0; (i + 1) * sizeof(int) <= len; i++)
- add_true_randomness(sc->sc_buf[i]);
+ enqueue_randomness(sc->sc_buf[i]);
if (sc->sc_interval)
timeout_add_sec(&sc->sc_tick, sc->sc_interval);