hw/misc/bcm2835_rng: Use qemu_guest_getrandom_nofail
commit3090c980ed06e666a4b394fdb46284f220e091d1
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2019 22:56:52 +0000 (14 15:56 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 May 2019 16:38:54 +0000 (22 12:38 -0400)
tree06ddb91f31c25357ca432743baee6a3038fb7e0d
parent19173fd3350e438b414a84fad223ee05a46a8d81
hw/misc/bcm2835_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 rolling our own error handling locally.

Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/misc/bcm2835_rng.c