]> git.proxmox.com Git - mirror_qemu.git/commit
hw/misc/nrf51_rng: Use qemu_guest_getrandom_nofail
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2019 22:43:01 +0000 (15:43 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 May 2019 16:38:54 +0000 (12:38 -0400)
commit19173fd3350e438b414a84fad223ee05a46a8d81
tree2138656d2d64ffa44736b7cb08cd2143e641a005
parent9d44cb5b2ae10b224e91abb68e6f06a58af43389
hw/misc/nrf51_rng: Use qemu_guest_getrandom_nofail

The random number is intended for use by the guest.  As such, we should
honor the -seed argument for reproducibility.  Use the *_nofail routine
instead of error_abort directly.

Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/misc/nrf51_rng.c