Message ID | 20230419170136.1883584-2-andre.przywara@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix virtio/rng handling in low entropy situations | expand |
diff --git a/virtio/rng.c b/virtio/rng.c index 8f85d5ec1..e6e70ced3 100644 --- a/virtio/rng.c +++ b/virtio/rng.c @@ -166,7 +166,7 @@ int virtio_rng__init(struct kvm *kvm) if (rdev == NULL) return -ENOMEM; - rdev->fd = open("/dev/random", O_RDONLY | O_NONBLOCK); + rdev->fd = open("/dev/urandom", O_RDONLY); if (rdev->fd < 0) { r = rdev->fd; goto cleanup;