diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-08-08 02:55:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-08-08 02:55:18 +0000 |
commit | 4495071b763100a7b5beaaffae819c81587ea2c6 (patch) | |
tree | c871f3ff5c7c844973e85c3ba105df68dc411f5c /sys/dev/pci/ubsec.c | |
parent | 7675af55f74c62f5dac6b3fcfae216198b642e61 (diff) |
x is probably just as random as letoh32(x), don't bother byte swapping the numbers from the RNG.
Diffstat (limited to 'sys/dev/pci/ubsec.c')
-rw-r--r-- | sys/dev/pci/ubsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index 4a0dd83f6a9..8ce649712d0 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.128 2003/08/01 17:55:54 deraadt Exp $ */ +/* $OpenBSD: ubsec.c,v 1.129 2003/08/08 02:55:17 jason Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -1381,7 +1381,7 @@ ubsec_callback2(struct ubsec_softc *sc, struct ubsec_q2 *q) rng->rng_buf.dma_map->dm_mapsize, BUS_DMASYNC_POSTREAD); p = (u_int32_t *)rng->rng_buf.dma_vaddr; for (i = 0; i < UBSEC_RNG_BUFSIZ; p++, i++) - add_true_randomness(letoh32(*p)); + add_true_randomness(*p); rng->rng_used = 0; timeout_add(&sc->sc_rngto, sc->sc_rnghz); break; |