summaryrefslogtreecommitdiff
path: root/sys/dev/pci/safe.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/pci/safe.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/pci/safe.c')
-rw-r--r--sys/dev/pci/safe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/safe.c b/sys/dev/pci/safe.c
index 0a4c0de75a5..801e982455f 100644
--- a/sys/dev/pci/safe.c
+++ b/sys/dev/pci/safe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safe.c,v 1.42 2017/02/07 17:25:46 patrick Exp $ */
+/* $OpenBSD: safe.c,v 1.43 2018/04/28 15:44:59 jasper Exp $ */
/*-
* Copyright (c) 2003 Sam Leffler, Errno Consulting
@@ -1236,7 +1236,7 @@ retry:
WRITE_REG(sc, SAFE_RNG_ALM_CNT, 0);
for (i = 0; i < maxwords; i++)
- add_true_randomness(buf[i]);
+ enqueue_randomness(buf[i]);
timeout_add_sec(&sc->sc_rngto, safe_rnginterval);
}