rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
264 stars 166 forks source link

Linux/Android: Read a byte from `/dev/random` instead of polling it. #449

Closed briansmith closed 1 month ago

briansmith commented 1 month ago

See the added comment for details.

briansmith commented 1 month ago

Please hold off on merging this. I initially underestimated the potential problem of draining the estimated entropy from /dev/random as I was only considering long-running processes and not many invocations of short-lived processes. I am going to investigate another approach.

briansmith commented 1 month ago

Closing in favor of #452, which just adds the documentation from this.