diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2018-04-28 15:45:00 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2018-04-28 15:45:00 +0000 |
commit | d2aaab80e37b4e76e5cd539983916e5d7dbaf773 (patch) | |
tree | e0d12c3bee51150c5e294631e23df47429d120d4 /sys/arch/i386/pci | |
parent | 88c894b365edc9ba3d99f1dba14020c90bf81e72 (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/arch/i386/pci')
-rw-r--r-- | sys/arch/i386/pci/glxsb.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/pci/pchb.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/pci/glxsb.c b/sys/arch/i386/pci/glxsb.c index 1f47db76948..a359b99bb6e 100644 --- a/sys/arch/i386/pci/glxsb.c +++ b/sys/arch/i386/pci/glxsb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: glxsb.c,v 1.34 2017/12/27 15:10:16 fcambus Exp $ */ +/* $OpenBSD: glxsb.c,v 1.35 2018/04/28 15:44:59 jasper Exp $ */ /* * Copyright (c) 2006 Tom Cosgrove <tom@openbsd.org> @@ -314,7 +314,7 @@ glxsb_rnd(void *v) status = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SB_RANDOM_NUM_STATUS); if (status & SB_RNS_TRNG_VALID) { value = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SB_RANDOM_NUM); - add_true_randomness(value); + enqueue_randomness(value); } timeout_add_msec(&sc->sc_to, 10); diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c index 6d2b1e54d8a..11e78f855db 100644 --- a/sys/arch/i386/pci/pchb.c +++ b/sys/arch/i386/pci/pchb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pchb.c,v 1.89 2014/03/26 14:41:41 mpi Exp $ */ +/* $OpenBSD: pchb.c,v 1.90 2018/04/28 15:44:59 jasper Exp $ */ /* $NetBSD: pchb.c,v 1.65 2007/08/15 02:26:13 markd Exp $ */ /* @@ -473,7 +473,7 @@ pchb_rnd(void *v) if (!sc->sc_rng_i--) { sc->sc_rng_i = 4; - add_true_randomness(sc->sc_rng_ax); + enqueue_randomness(sc->sc_rng_ax); } } |