Re:How a Bad Random Number Generator Froze Sway (2020)
by krastanov on Monday March 15, 2021 @08:11PM
(#26471195)
Why is rng not handled by a standard library or with a call to /dev/*random? Feels weird to me that average userspace code should even know about CPU instructions.
[ Parent
| on HN ]
Re:How a Bad Random Number Generator Froze Sway (2020)
by fluix on Monday March 15, 2021 @08:20PM
(#26471289)
Author here. Not particularly sure myself, even systemd says it only does so because it does things early in the boot process[1]. Using it for it's purpose here is probably alright, but the odd part is prioritizing it[2] over /dev/urandom.
[1]: https://github.com/systemd/systemd/blob/301e7cd047c8d07715d5... [2]: https://github.com/json-c/json-c/blob/31f1ab2be1142d982fc9b8...