Re: [PATCH] tests: use g_test_rand_int

2019-12-11 Thread Paolo Bonzini
On 11/12/19 20:25, Thomas Huth wrote: > On 11/12/2019 15.23, Paolo Bonzini wrote: >> g_test_rand_int provides a reproducible random integer number, using a >> different number seed every time but allowing reproduction using the >> --seed command line option. It is thus better suited to tests than

Re: [PATCH] tests: use g_test_rand_int

2019-12-11 Thread Thomas Huth
On 11/12/2019 15.23, Paolo Bonzini wrote: > g_test_rand_int provides a reproducible random integer number, using a > different number seed every time but allowing reproduction using the > --seed command line option. It is thus better suited to tests than > g_random_int or random. > > Signed-off-b

[PATCH] tests: use g_test_rand_int

2019-12-11 Thread Paolo Bonzini
g_test_rand_int provides a reproducible random integer number, using a different number seed every time but allowing reproduction using the --seed command line option. It is thus better suited to tests than g_random_int or random. Signed-off-by: Paolo Bonzini --- block/vhdx.c | 2 +- bl