]> git.proxmox.com Git - mirror_qemu.git/commit
tests: use g_test_rand_int
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Dec 2019 01:17:58 +0000 (02:17 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2019 08:05:23 +0000 (09:05 +0100)
commit0f555602c7430ae55b5a4bacf39ce9e483e11193
tree1a63690a8898b74e3b89a0a77eb4f98c7b0c9fd5
parentc3088cd306caf965f1901e0a9ed818353c530b4e
tests: use g_test_rand_int

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 <pbonzini@redhat.com>
Message-Id: <1576113478-42926-1-git-send-email-pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/ivshmem-test.c
tests/test-bitmap.c
tests/test-qga.c