Home
last modified time | relevance | path

Searched refs:random_u64 (Results 1 – 25 of 25) sorted by relevance

/systemd-251/src/basic/
Drandom-util.c285 return random_u64(); in random_u64_range()
292 x = random_u64(); in random_u64_range()
Dtmpfile-util.c154 random_u64()) < 0) in tempfn_random()
201 u = random_u64(); in tempfn_random_child()
Drandom-util.h18 static inline uint64_t random_u64(void) { in random_u64() function
/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-watch-bind.c58 assert_se(asprintf(&suffixed, "%s.%" PRIx64, d, random_u64()) >= 0); in thread_server()
62 assert_se(asprintf(&suffixed2, "%s.%" PRIx64, d, random_u64()) >= 0); in thread_server()
/systemd-251/src/resolve/
Dtest-dnssec-complex.c20 u = 1 + (random_u64() & 3); in prefix_random()
26 assert_se(asprintf(&b, "x%" PRIu64 "x", random_u64())); in prefix_random()
/systemd-251/src/shared/
Dtests.c225 … if (asprintf(&scope, "%s-%" PRIx64 ".scope", program_invocation_short_name, random_u64()) < 0) in allocate_scope()
293 assert_se(asprintf(&cgroup_subroot, "%s/%" PRIx64, cgroup_root, random_u64()) >= 0); in enter_cgroup()
Dask-password-api.c680 if (asprintf(&path, "/run/systemd/ask-password/sck.%" PRIx64, random_u64()) < 0) in create_socket()
Dcreds-util.c145 if (asprintf(&t, "credential.secret.%016" PRIx64, random_u64()) < 0) in make_credential_host_secret()
/systemd-251/src/cryptsetup/
Dcryptsetup-pkcs11.c65 … if (asprintf(&bindname, "@%" PRIx64"/cryptsetup-pkcs11/%s", random_u64(), volume_name) < 0) in decrypt_pkcs11_key()
Dcryptsetup-fido2.c53 … if (asprintf(&bindname, "@%" PRIx64"/cryptsetup-fido2/%s", random_u64(), volume_name) < 0) in acquire_fido2_key()
Dcryptsetup-tpm2.c98 … if (asprintf(&bindname, "@%" PRIx64"/cryptsetup-tpm2/%s", random_u64(), volume_name) < 0) in acquire_tpm2_key()
Dcryptsetup.c729 if (asprintf(&s, "@%" PRIx64"/cryptsetup/%s", random_u64(), volume) < 0) in make_bindname()
/systemd-251/src/test/
Dtest-fd-util.c254 n_keep = (random_u64() % (n_fds / 2)); in test_close_all_fds_inner()
262 p = random_u64() % n_fds; in test_close_all_fds_inner()
Dtest-socket-util.c499 assert_se(asprintf(&sh, "/tmp/%" PRIx64, random_u64()) >= 0); in TEST()
Dtest-fileio.c901 assert_se(asprintf(&clientname, "@%" PRIx64 "/test-bindname", random_u64()) >= 0); in TEST()
Dtest-fs-util.c802 size_t l = 16*1024 + random_u64() % (32 * 1024); /* some randomly sized buffer 16k…48k */ in TEST()
/systemd-251/src/libsystemd-network/
Dsd-ndisc.c260 (random_u64() % (2 * USEC_PER_SEC)) * val / 10 / USEC_PER_SEC; in ndisc_timeout_compute_random()
Dsd-ipv4acd.c201 next_timeout += (usec_t) random_u64() % random_usec; in ipv4acd_set_next_wakeup()
Dsd-lldp-tx.c530 (usec_t) random_u64() % LLDP_TX_JITTER_USEC); in lldp_tx_get_delay()
Dsd-dhcp-client.c756 ((int64_t)(random_u64() % (2 * USEC_PER_SEC)) - (int64_t)USEC_PER_SEC)
/systemd-251/src/core/
Dtimer.c361 … add = (t->fixed_random_delay ? timer_get_fixed_delay_hash(t) : random_u64()) % t->random_usec; in add_random()
Dexecute.c2687 if (asprintf(&bindname, "@%" PRIx64"/unit/%s/%s", random_u64(), unit, id) < 0) in load_credential()
/systemd-251/src/libsystemd/sd-journal/
Djournal-file.c3726 random_u64()) < 0) in journal_file_dispose()
/systemd-251/src/nspawn/
Dnspawn.c3060 if (strextendf(&arg_machine, "-%016" PRIx64, random_u64()) < 0) in determine_names()
/systemd-251/src/partition/
Drepart.c2578 if (asprintf(&dm_name, "luks-repart-%08" PRIx64, random_u64()) < 0) in partition_encrypt()