Home
last modified time | relevance | path

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

1234567

/linux/tools/testing/selftests/powerpc/stringloops/
H A Dmemcmp.c105 s1[j] = random(); in testcase()
107 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
108 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
112 change = random() % comp_size; in testcase()
113 rand_s2[change] = random() & 0xff; in testcase()
131 s1[j] = random(); in testcase()
133 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
134 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
139 change = random() % comp_size; in testcase()
140 s2[change] = random() & 0xff; in testcase()
H A Dstrlen.c69 c = random() & 0x7f; in testcase()
82 c = random() & 0x7f; in testcase()
96 c = random() & 0x7f; in testcase()
/linux/arch/s390/boot/
H A Dkaslr.c57 unsigned long seed, random; in get_random() local
66 cpacf_trng(NULL, 0, (u8 *) &random, sizeof(random)); in get_random()
71 cpacf_prno(CPACF_PRNO_SHA512_DRNG_GEN, &prno, (u8 *) &random, in get_random()
72 sizeof(random), NULL, 0); in get_random()
83 random = seed; in get_random()
84 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, (u8 *) &random, in get_random()
85 (u8 *) &random, sizeof(random)); in get_random()
90 *value = random % limit; in get_random()
/linux/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c286 unsigned long offset, random; in kaslr_choose_location() local
295 random = get_boot_seed(dt_ptr); in kaslr_choose_location()
299 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
306 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
338 index = random & 0xFF; in kaslr_choose_location()
342 offset = random % (SZ_64M - kernel_sz); in kaslr_choose_location()
/linux/Documentation/admin-guide/
H A Dhw_random.rst2 Hardware random number generators
23 /dev/random special files.
29 and read() system calls, you can read random data from
35 data before assuming it is truly random.
62 using thermal noise generated from inherently random quantum
63 mechanical properties of silicon. When not generating new random
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-flakey.rst71 During <down interval>, replace random byte in a read bio
72 with a random value. probability is an integer between
76 During <down interval>, replace random byte in a write bio
77 with a random value. probability is an integer between
H A Ddm-zoned.rst11 device-side performance degradation due to excessive random writes on
53 zones of the device may be used also for buffering user random writes.
56 reused for buffering incoming random writes.
75 zone used to buffer random modification to the data zone.
95 chunk, resulting in native random write performance similar to a regular
177 0 <size> zoned <nr_zones> zones <nr_unmap_rnd>/<nr_rnd> random <nr_unmap_seq>/<nr_seq> sequential
180 of unmapped (ie free) random zones, <nr_rnd> the total number of zones,
185 percent free random zones. In order to start the reclaim process manually
193 will start the reclaim process and random zones will be moved to sequential
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-gpr.c99 r = random(); in rand_reg()
107 result |= random() << (__LONG_WIDTH__ - 31); in rand_reg()
112 result ^= random() << 16; in rand_reg()
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Dremote_ssh.py6 import random
27 return ''.join(random.choice(string.ascii_lowercase) for _ in range(8))
/linux/tools/testing/selftests/net/lib/py/
H A Dnetns.py5 import random
21 self.name = ''.join(random.choice(string.ascii_lowercase) for _ in range(8))
47 random.choice(string.ascii_lowercase) for _ in range(8))
H A Dnsim.py6 import random
60 addr = random.randrange(1 << 15)
66 addr = random.randrange(1 << 15)
/linux/tools/testing/selftests/drivers/net/
H A Dxdp.py9 import random
94 test_str = "".join(random.choice(string.ascii_lowercase) for _ in range(size))
293 random.choice(string.ascii_lowercase) for _ in range(payload_len)
448 tag = format(random.randint(65, 90), "02x")
455 test_str = "".join(random.choice(string.ascii_lowercase) for _ in range(pkt_sz))
590 test_str = ''.join(random.choice(string.ascii_lowercase) for _ in range(pkt_sz))
591 tag = format(random.randint(65, 90), '02x')
H A Dping.py5 import random, string, time
38 test_string = ''.join(random.choice(string.ascii_lowercase) for _ in range(65536))
46 test_string = ''.join(random.choice(string.ascii_lowercase) for _ in range(65536))
/linux/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh16 random=
303 if [ "$random" -a $width -gt 2 ]; then
319 random=true
/linux/net/sctp/
H A Dauth.c186 struct sctp_random_param *random, in sctp_auth_make_key_vector() argument
196 random_len = ntohs(random->param_hdr.length); in sctp_auth_make_key_vector()
207 memcpy(new->data, random, random_len); in sctp_auth_make_key_vector()
401 const struct sctp_paramhdr *random; in sctp_auth_verify_cookie_params() local
411 random = (const struct sctp_paramhdr *)cookie->auth_random; in sctp_auth_verify_cookie_params()
412 if (random->type != SCTP_PARAM_RANDOM || in sctp_auth_verify_cookie_params()
413 ntohs(random->length) != sizeof(*random) + SCTP_AUTH_RANDOM_LENGTH) in sctp_auth_verify_cookie_params()
/linux/drivers/net/wireless/ath/carl9170/
H A DKconfig46 Provides a hardware random number generator to the kernel.
49 generated random numbers from the transport stream with
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer_configuration.py6 import random
49 th = random.randint(3, 16)
67 return arr[random.randint(0, len(arr) - 1)]
402 random.seed(0)
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dmmrc.c808 struct mmrc_rate random; in mmrc_get_rates() local
875 random = get_rate_row(tb, random_index); in mmrc_get_rates()
877 if (!validate_rate(tb, &random)) in mmrc_get_rates()
880 if (random.rate == MMRC_MCS10) in mmrc_get_rates()
889 random); in mmrc_get_rates()
905 if (random.rate > tb->best_tp.rate + 1 || in mmrc_get_rates()
906 random.bw > tb->best_tp.bw + 1 || in mmrc_get_rates()
907 (random.rate > tb->best_tp.rate && in mmrc_get_rates()
908 random.bw > tb->best_tp.bw)) in mmrc_get_rates()
926 lookaround0 = random; in mmrc_get_rates()
/linux/tools/testing/selftests/powerpc/math/
H A Dfpu.h14 val = random(); in randomise_darray()
/linux/include/uapi/linux/netfilter/
H A Dxt_statistic.h27 } random; member
/linux/Documentation/firmware-guide/acpi/dsd/
H A Ddata-node-references.rst57 Package () { "random-property", 3 },
70 Package () { "random-property", 0 },
/linux/arch/x86/tools/
H A Dinsn_sanity.c150 *(unsigned short *)(&insn_buff[i]) = random() & 0xffff; in generate_insn()
153 insn_buff[i++] = random() & 0xff; in generate_insn()
/linux/tools/testing/selftests/pstore/
H A Dcommon_tests58 UUID=`cat /proc/sys/kernel/random/uuid`
/linux/Documentation/translations/zh_CN/maintainer/
H A Dmodifying-patches.rst24 Signed-off-by: Random J Developer <random@developer.example.org>
/linux/tools/testing/kunit/test_data/
H A Dtest_kernel_panic_interrupt.log2 [ 0.060000] random: get_random_bytes called from init_oops_id+0x35/0x40 with crng_init=0

1234567