Lines Matching +full:- +full:seed
2 * QEMU guest-visible random functions
15 #include "qemu/guest-random.h"
17 #include "exec/replay-core.h"
31 /* Thread not initialized for a cpu, or main w/o -seed. */ in glib_random_bytes()
41 __builtin_memcpy(buf + i, &x, len - i); in glib_random_bytes()
56 /* Non-deterministic implementation using crypto routines. */ in qemu_guest_getrandom()
80 void qemu_guest_random_seed_thread_part2(uint64_t seed) in qemu_guest_random_seed_thread_part2() argument
85 g_rand_new_with_seed_array((const guint32 *)&seed, in qemu_guest_random_seed_thread_part2()
86 sizeof(seed) / sizeof(guint32)); in qemu_guest_random_seed_thread_part2()
92 uint64_t seed; in qemu_guest_random_seed_main() local
93 if (parse_uint_full(seedstr, 0, &seed)) { in qemu_guest_random_seed_main()
94 error_setg(errp, "Invalid seed number: %s", seedstr); in qemu_guest_random_seed_main()
95 return -1; in qemu_guest_random_seed_main()
98 qemu_guest_random_seed_thread_part2(seed); in qemu_guest_random_seed_main()