Re: [PATCH v2] tests: use g_test_rand_int

2019-12-11 Thread Thomas Huth
On 12/12/2019 02.17, 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

Re: [PATCH v2] tests: use g_test_rand_int

2019-12-11 Thread Richard Henderson
On 12/11/19 5:17 PM, 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 v2] 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 --- tests/ivshmem-test.c | 2 +- te