aspeed/scu: Use qemu_guest_getrandom_nofail
commit9d44cb5b2ae10b224e91abb68e6f06a58af43389
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2019 21:55:26 +0000 (14 14:55 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 May 2019 16:38:54 +0000 (22 12:38 -0400)
treefe92c1297a162b4d5024302d3f9cadbeddc00260
parent79743bdbcb7a1a72e6c8ad4fd0bc946a0c552f88
aspeed/scu: 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>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/misc/aspeed_scu.c