rust-random / getrandom

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

Use vDSO on Linux 6.11 #503

Closed ericlagergren closed 1 month ago

ericlagergren commented 1 month ago

See https://github.com/golang/go/issues/69577

briansmith commented 1 month ago

I think this would be good to have opt-in for a while, while the DSO feature is being tested in the real world.

newpavlov commented 1 month ago

This may be interesting in the context of #424, but otherwise I think we should just use libc::getrandom (maybe through dlopen in the backend with /dev/urandom fallback) and let it decide how the syscall is handled.

newpavlov commented 1 month ago

Closing in favor of #508 and https://github.com/bytecodealliance/rustix/issues/1185.