Home
last modified time | relevance | path

Searched full:random (Results 1 – 25 of 1166) sorted by relevance

12345678910>>...47

/linux/Documentation/admin-guide/
H A Dhw_random.rst2 Hardware random number generators
10 a Random Number Generator (RNG). The software has two parts:
23 /dev/random special files.
29 and read() system calls, you can read random data from
35 data before assuming it is truly random.
53 Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)
61 The Firmware Hub integrates a Random Number Generator (RNG)
62 using thermal noise generated from inherently random quantum
63 mechanical properties of silicon. When not generating new random
96 Random Number Generator
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_resize.sh63 …if ! conntrack -I -s \$((\$RANDOM%256)).\$((\$RANDOM%256)).\$((\$RANDOM%256)).\$((\$RANDOM%255+1))…
64 -d \$((\$RANDOM%256)).\$((\$RANDOM%256)).\$((\$RANDOM%256)).\$((\$RANDOM%255+1)) \
65 --protonum 17 --timeout 3600 --status ASSURED,SEEN_REPLY --sport \$RANDOM --dport 53; then \
95 sysctl -q net.netfilter.nf_conntrack_buckets=$RANDOM
102 local r=$RANDOM
170 dport=$(((RANDOM%65536)+1))
190 ip netns exec "$ns" timeout 30 ./udpclash 127.0.0.1 $((RANDOM%65536)) > /dev/null 2>&1
222 sleep $((RANDOM%2))
230 local r1=$((RANDOM%2))
231 local r2=$((RANDOM%2))
[all …]
H A Dnft_concat_range.sh1325 [ $((RANDOM%20)) -gt 0 ] && return
1342 [ $((RANDOM%20)) -gt 0 ] && return
1428 printf ". 172.%i.%i.%i " $((RANDOM%256)) $((RANDOM%256)) $((i%256))
1434 printf "%i . " $((RANDOM%256))
1443 local proto=$((RANDOM%256))
1457 printf "%i . 172.%i.%i.%i " $(((RANDOM%65534) + 1)) $((RANDOM%256)) $((RANDOM%256)) $((i%256))
1463 printf "172.%i.%i.%i . " $((RANDOM%256)) $((RANDOM%256)) $((i%256))
1471 printf "172.%i.%i.%i . %i" $((RANDOM%256)) $((RANDOM%256)) $((i%256)) $(((RANDOM%65534) + 1))
1478 printf "172.%i.%i.%i . %i . " $((RANDOM%256)) $((RANDOM%256)) $((i%256)) $(((RANDOM%65534) + 1))
1480 printf ". %i . 192.168.%i.%i" $((RANDOM%256)) $((RANDOM%256)) $((i%256))
[all …]
/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()
/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/tools/testing/selftests/bpf/verifier/
H A Dld_dw.c2 "ld_dw: xor semi-random 64 bit imms, test 1",
11 "ld_dw: xor semi-random 64 bit imms, test 2",
20 "ld_dw: xor semi-random 64 bit imms, test 3",
29 "ld_dw: xor semi-random 64 bit imms, test 4",
38 "ld_dw: xor semi-random 64 bit imms, test 5",
/linux/drivers/firmware/efi/libstub/
H A Drandom.c29 * efi_get_random_bytes() - fill a buffer with random bytes
31 * @out: caller allocated buffer to receive the random bytes
34 * EFI_RNG_PROTOCOL or there are not enough random bytes available to fill
53 * efi_random_get_seed() - provide random seed as configuration table
55 * The EFI_RNG_PROTOCOL is used to read random bytes. These random bytes are
57 * for the initialization of its pseudo random number generator.
59 * If the EFI_RNG_PROTOCOL is not available or there are not enough random bytes
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer_configuration.py6 import random
16 objects, pool, tcbind and portpool. Provide an interface to get random
19 - random size
22 - random pool number
23 - random threshold
26 - random threshold
49 th = random.randint(3, 16)
67 return arr[random.randint(0, len(arr) - 1)]
223 # For each pool, set random size and static threshold type
296 # Bind each port and unicast TC (TCs < 8) to a random pool and a random
[all …]
/linux/Documentation/admin-guide/device-mapper/
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
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
/linux/tools/testing/selftests/net/
H A Dtest_ingress_egress_chaining.sh20 ns="ns$((RANDOM%899+100))"
21 veth1="veth1$((RANDOM%899+100))"
22 veth2="veth2$((RANDOM%899+100))"
23 peer1="peer1$((RANDOM%899+100))"
24 peer2="peer2$((RANDOM%899+100))"
H A Dtfo_passive.sh5 NSIM_SV_ID=$((256 + RANDOM % 256))
7 NSIM_CL_ID=$((512 + RANDOM % 256))
65 NSIM_SV_FD=$((256 + RANDOM % 256))
69 NSIM_CL_FD=$((256 + RANDOM % 256))
H A Dgre_ipv6_lladdr.sh69 # device (eui64, none, stable-privacy or random).
104 "random")
107 MSG="${GRE_TYPE}, mode: 3 (random), ${LOCAL_IP} -> ${REMOTE_IP}"
138 for MODE in "eui64" "none" "stable-privacy" "random"; do
154 for MODE in "eui64" "none" "stable-privacy" "random"; do
/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()
336 * Only use the low 8 bits of the random seed in kaslr_choose_location()
338 index = random & 0xFF; in kaslr_choose_location()
342 offset = random % (SZ_64M - kernel_sz); in kaslr_choose_location()
349 * To see if we need to relocate the kernel to a random offset
/linux/arch/x86/tools/
H A Dinsn_sanity.c23 * Feed random binary to instruction decoder and ensure not to
33 static unsigned int seed; /* Random seed */
46 fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); in usage()
148 /* Fills buffer with random binary up to MAX_INSN_SIZE */ in generate_insn()
150 *(unsigned short *)(&insn_buff[i]) = random() & 0xffff; in generate_insn()
153 insn_buff[i++] = random() & 0xff; in generate_insn()
209 usage("Don't use input file (-i) with random seed (-s)"); in parse_args()
211 /* Initialize random seed */ in parse_args()
260 (input_file) ? "given" : "random", in main()
/linux/include/linux/
H A Dkasan-tags.h7 #define KASAN_TAG_MAX 0xFD /* maximum value for random tags */
10 #define KASAN_TAG_MIN 0xF0 /* minimum value for random tags */
12 #define KASAN_TAG_MIN 0x00 /* minimum value for random tags */
/linux/include/uapi/linux/
H A Drandom.h3 * include/linux/random.h
5 * Include file for the random number generator.
15 /* ioctl()'s for the random number generator */
52 * GRND_INSECURE Return non-cryptographic random bytes
/linux/Documentation/devicetree/bindings/rng/
H A Dmicrochip,pic32-rng.yaml7 title: Microchip PIC32 Random Number Generator
10 The PIC32 RNG provides a pseudo random number generator which can be seeded
11 by another true random number generator.
/linux/drivers/char/
H A Drandom.c35 #include <linux/random.h>
97 MODULE_PARM_DESC(ratelimit_disable, "Disable random ratelimit suppression");
101 * to supply cryptographically secure random numbers. This applies to: the
124 * cryptographically secure random numbers. This applies to: the /dev/urandom
172 * RNG described at <https://blog.cr.yp.to/20170723-random.html>.
186 * These interfaces will return the requested number of random bytes
189 * functions may be higher performance for one-off random integers,
295 * half of the block containing 32 bytes of random data that may
325 * random data. It also returns up to 32 bytes on its own of random data
378 * some random data and a ChaCha state for the caller. All other in crng_make_state()
[all …]
/linux/samples/pktgen/
H A Dpktgen_sample01_simple.sh6 # * flow variation via random UDP source port
38 # Flow variation random source port between min and max
73 # Single destination port or random port range
81 # Setup random UDP port src range
H A Dpktgen_sample02_multiqueue.sh8 # * flow variation via random UDP source port
25 # Flow variation random source port between min and max
75 # Single destination port or random port range
83 # Setup random UDP port src range
/linux/drivers/target/iscsi/
H A Discsi_target_nodeattrib.c183 pr_err("Requested Random DataIN PDU Offsets: %u not" in iscsit_na_random_datain_pdu_offsets()
189 pr_debug("Set Random DataIN PDU Offsets to %u for" in iscsit_na_random_datain_pdu_offsets()
203 pr_err("Requested Random DataIN Sequence Offsets: %u" in iscsit_na_random_datain_seq_offsets()
209 pr_debug("Set Random DataIN Sequence Offsets to %u for" in iscsit_na_random_datain_seq_offsets()
223 pr_err("Requested Random R2T Offsets: %u not" in iscsit_na_random_r2t_offsets()
229 pr_debug("Set Random R2T Offsets to %u for" in iscsit_na_random_r2t_offsets()
/linux/drivers/char/hw_random/
H A Dmxc-rnga.c67 /* how many random numbers are in FIFO? [0-16] */ in mxc_rnga_data_present()
83 /* retrieve a random number from FIFO */ in mxc_rnga_data_read()
86 /* some error while reading this random number? */ in mxc_rnga_data_read()
89 /* if error: clear error interrupt, but doesn't return random number */ in mxc_rnga_data_read()
91 dev_dbg(mxc_rng->dev, "Error while reading random number!\n"); in mxc_rnga_data_read()
/linux/tools/testing/selftests/rcutorture/bin/
H A Djitter.sh5 # of this script is to inflict random OS jitter on a concurrently running
10 # me: Random-number-generator seed salt.
96 # Sleep a random duration
104 # Spin a random duration, but with rather coarse granularity.
/linux/drivers/net/wireless/ath/carl9170/
H A DKconfig42 bool "Random number generator"
46 Provides a hardware random number generator to the kernel.
49 generated random numbers from the transport stream with

12345678910>>...47