In dequeue_randomness() use an atomic instruction to increase the
authorclaudio <claudio@openbsd.org>
Tue, 4 Jun 2024 08:26:11 +0000 (08:26 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 4 Jun 2024 08:26:11 +0000 (08:26 +0000)
commit609c45bc8afc0c1dfc2445e8ad7a99d5231f511c
treee73b978989a73f8541c55fac957c68ce66af5c22
parenta10777de6dc366db16caee967ae7f71ae7bb0160
In dequeue_randomness() use an atomic instruction to increase the
rnd_event_cons. This way even concurrent calls to dequeue_randomness()
will use some different events.
OK deraadt@ djm@
sys/dev/rnd.c