Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 11 of 11) sorted by relevance

/qemu/util/
H A Dguest-random.c26 GRand *rand = thread_rand; in glib_random_bytes() local
30 if (unlikely(rand == NULL)) { in glib_random_bytes()
32 thread_rand = rand = g_rand_new(); in glib_random_bytes()
36 x = g_rand_int(rand); in glib_random_bytes()
40 x = g_rand_int(rand); in glib_random_bytes()
/qemu/tests/qtest/libqos/
H A Dlibqos.c175 p = rand() % 256; in generate_pattern()
179 p = rand() % 256; in generate_pattern()
/qemu/migration/
H A Ddirtyrate.c401 GRand *rand; in save_ramblock_hash() local
423 rand = g_rand_new(); in save_ramblock_hash()
425 info->sample_page_vfn[i] = g_rand_int_range(rand, 0, in save_ramblock_hash()
430 g_rand_free(rand); in save_ramblock_hash()
/qemu/pc-bios/s390-ccw/
H A Dnetboot.mak34 STDLIB_OBJS = atoi.o atol.o strtoul.o strtol.o rand.o malloc.o free.o
/qemu/tests/unit/
H A Dtest-rcu-list.c59 return (rand() % max); in select_random_el()
/qemu/tests/qtest/
H A Dide-test.c706 memset(buf, rand() % 255 + 1, len); in make_dirty()
/qemu/target/ppc/
H A Dcpu_init.c5868 GRand *rand = g_rand_new(); in register_power10_hash_sprs() local
5870 ((uint64_t)g_rand_int(rand) << 32) | (uint64_t)g_rand_int(rand); in register_power10_hash_sprs()
5872 ((uint64_t)g_rand_int(rand) << 32) | (uint64_t)g_rand_int(rand); in register_power10_hash_sprs()
5873 g_rand_free(rand); in register_power10_hash_sprs()
/qemu/hw/audio/
H A Dfmopl.c491 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
/qemu/docs/devel/
H A Dtcg-plugins.rst619 :code:`fifo`, and :code:`rand`. The plugin will use the specified policy for
/qemu/block/
H A Discsi.c202 return -mean * log((double)rand() / RAND_MAX); in exp_random()
/qemu/
H A Dqemu-options.hx5636 # openssl rand -base64 32 > key.b64
5645 # openssl rand -base64 16 > iv.b64