]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/ivshmem-test.c
tests: use g_test_rand_int
[mirror_qemu.git] / tests / ivshmem-test.c
index be9aa92a6125a966095401e77a6c96034bd76cfb..ecda25647265aa98ca9b59a7c015a5070605cc41 100644 (file)
@@ -443,7 +443,7 @@ static gchar *mktempshm(int size, int *fd)
     while (true) {
         gchar *name;
 
-        name = g_strdup_printf("/qtest-%u-%u", getpid(), g_random_int());
+        name = g_strdup_printf("/qtest-%u-%u", getpid(), g_test_rand_int());
         *fd = shm_open(name, O_CREAT|O_RDWR|O_EXCL,
                        S_IRWXU|S_IRWXG|S_IRWXO);
         if (*fd > 0) {