summary refs log tree commit diff stats
path: root/results/classifier/accel-gemma3:12b/vmm/1811758
blob: 40ff77177b6ccab8c29d837472c3ee26a5058aae (plain) (blame)
1
2
3
4
5
6
virtio-rng backend should use getentropy() syscall when available

According to https://wiki.qemu.org/Features/VirtIORNG the default backend for `virtio-rng-pci` is `/dev/random`.  Alternately, the user can point it to a different backend file, like `/dev/urandom`.

However, both of these files have suboptimal behavior in one way or another, as documented in `random(7)`.  Instead, the default behavior should be to pull the requested octets from the `getrandom()` system call, if available, called with no flags set.