]> git.lizzy.rs Git - rust.git/commit
Fall back to `/dev/urandom` on `EPERM` for `getrandom`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 1 May 2019 20:23:07 +0000 (22:23 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 1 May 2019 20:23:07 +0000 (22:23 +0200)
commitbd8885d340beb20ac1728d0bd7e64321da641b91
treeb92c0bc82c916ab33432619c60ef0677c3b4d6a9
parent6cc24f26036b28fb3366de86efe3da6c4464057a
Fall back to `/dev/urandom` on `EPERM` for `getrandom`

This can happen because of seccomp or some VMs.

Fixes #52609.
src/libstd/sys/unix/rand.rs