Home
last modified time | relevance | path

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

12345678910>>...91

/openbmc/linux/drivers/char/hw_random/
H A DKconfig3 # Hardware Random Number Generator (RNG) configuration
7 tristate "Hardware Random Number Generator Core support"
10 Hardware Random Number Generator Core infrastructure.
15 of possibly several hardware random number generators.
17 These hardware random number generators do feed into the
18 kernel's random number generator entropy pool.
25 tristate "Timer IOMEM HW Random Number Generator support"
28 This driver provides kernel-side support for a generic Random
39 tristate "Intel HW Random Number Generator support"
43 This driver provides kernel-side support for the Random Number
[all …]
/openbmc/linux/include/crypto/
H A Drng.h3 * RNG: Random Number Generator algorithms under the crypto API
33 * struct rng_alg - random number generator definition
36 * random number. The random number generator transform
37 * must generate the random number out of the context
40 * @seed: Seed or reseed the random number generator. With the
41 * invocation of this function call, the random number
43 * random number generator requires a seed for setting
50 * @seedsize: The seed size required for a random number generator
52 * random number generators does not require a seed
85 * DOC: Random number generator API
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H A Dsigfuz.c14 * test depends on random numbers, and, based on them, it sets different TM
18 * to the sigreturn system call with random data, in order to make sure that
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
155 ucp->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
157 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
159 ucp->uc_link->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
161 ucp->uc_mcontext.gp_regs[PT_TRAP] = random(); in trap_signal_handler()
162 ucp->uc_mcontext.gp_regs[PT_DSISR] = random(); in trap_signal_handler()
163 ucp->uc_mcontext.gp_regs[PT_DAR] = random(); in trap_signal_handler()
164 ucp->uc_mcontext.gp_regs[PT_ORIG_R3] = random(); in trap_signal_handler()
[all …]
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dfuzz.py19 import random
47 """Select a random integer number from the list of specified intervals.
53 r = random.randint(0, total - 1) + intervals[0][0]
60 """Generate random binary mask with ones in the specified bit ranges.
63 positions will be fuzzed. The limits are included. Random amount of bits
68 # Select random amount of random positions in bit_ranges
70 bit_numbers += random.sample(range(rng[0], rng[1] + 1),
71 random.randint(0, rng[1] - rng[0] + 1))
98 """Return a random value from intervals not equal to the current.
106 """Return a random bit mask not equal to the current.
[all …]
H A Dlayout.py19 import random
87 This class allows to create qcow2 images with random valid structures and
93 """Create a random valid qcow2 image with the correct header and stored
113 self.bias = random.uniform(0.2, 0.5)
122 """Generate a random valid header."""
125 ['>I', 4, random.randint(2, 3), 'version'],
151 random.getrandbits(2)
152 self.header['compatible_features'][0].value = random.getrandbits(1)
212 """Generate a random header extension for names of features used in
216 """Return random feature type and feature bit."""
[all …]
/openbmc/linux/Documentation/admin-guide/
H A Dhw_random.rst2 Hardware random number generators
10 a Random Number Generator (RNG). The software has two parts:
24 /dev/random special files.
30 and read() system calls, you can read random data from
36 data before assuming it is truly random.
54 Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)
62 The Firmware Hub integrates a Random Number Generator (RNG)
63 using thermal noise generated from inherently random quantum
64 mechanical properties of silicon. When not generating new random
97 Random Number Generator
[all …]
/openbmc/qemu/crypto/
H A Drandom-platform.c2 * QEMU Crypto random number provider
23 #include "crypto/random.h"
31 # include <sys/random.h>
33 /* This is -1 for getrandom(), or a file handle for /dev/{u,}random. */
57 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
60 error_setg_errno(errp, errno, "No /dev/urandom or /dev/random"); in qcrypto_random_init()
74 "Unable to read random bytes"); in qcrypto_random_bytes()
105 error_setg(errp, "Unexpected EOF reading random bytes"); in qcrypto_random_bytes()
108 error_setg_errno(errp, errno, "Unable to read random bytes"); in qcrypto_random_bytes()
/openbmc/linux/arch/x86/lib/
H A Dkaslr.c56 unsigned long raw, random = get_boot_seed(); in kaslr_get_random_long() local
68 random ^= raw; in kaslr_get_random_long()
78 random ^= raw; in kaslr_get_random_long()
85 random ^= i8254(); in kaslr_get_random_long()
90 : "=a" (random), "=d" (raw) in kaslr_get_random_long()
91 : "a" (random), "rm" (mix_const)); in kaslr_get_random_long()
92 random += raw; in kaslr_get_random_long()
97 return random; in kaslr_get_random_long()
/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Durandom12 # Short-Description: Save and restore the random seed
13 # Description: Save the random seed on shutdown and restore it on boot,
20 RANDOM_SEED_FILE=/var/lib/urandom/random-seed
27 test "$VERBOSE" != no && echo "Initializing random number generator..."
40 # Carry a random seed from shut-down to start-up;
41 # see documentation in linux/drivers/char/random.c
42 test "$VERBOSE" != no && echo "Saving random seed..."
/openbmc/openbmc/poky/meta/recipes-support/libgcrypt/files/
H A D0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch4 Subject: [PATCH] random:cipher: handle substitution in sed command
10 * random/Makefile.am (o_flag_munging): Likewise.
14 Makefile.am of cipher and random
21 random/Makefile.am | 2 +-
37 diff --git a/random/Makefile.am b/random/Makefile.am
39 --- a/random/Makefile.am
40 +++ b/random/Makefile.am
/openbmc/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()
/openbmc/openbmc-test-automation/gui/gui_test/security_and_access_menu/
H A Dtest_user_management_sub_menu.robot160 # Get random username and user privilege level.
161 ${username}= Generate Random String 8 [LETTERS]
162 ${privilege_level}= Evaluate random.choice(${list_user_privilege}) random
176 # Get random username and user privilege level.
177 ${username}= Generate Random String 8 [LETTERS]
178 ${privilege_level}= Evaluate random.choice(${list_user_privilege}) random
214 # Get random username, user privilege level and account status.
215 ${username}= Generate Random String 8 [LETTERS]
216 ${privilege_level}= Evaluate random.choice(${list_user_privilege}) random
217 ${initial_account_status}= Evaluate random.choice([True, False]) random
[all …]
/openbmc/openbmc-test-automation/redfish/account_service/
H A Dtest_ipmi_redfish_user.robot31 ${random_username}= Generate Random String 8 [LETTERS]
51 ${random_username}= Generate Random String 8 [LETTERS]
76 ${random_username}= Generate Random String 8 [LETTERS]
111 ${random_username}= Generate Random String 8 [LETTERS]
132 ${username} ${userid}= IPMI Create Random User Plus Password And Privilege
149 ${username} ${userid}= IPMI Create Random User Plus Password And Privilege
169 ${username} ${userid}= IPMI Create Random User Plus Password And Privilege
187 ${username} ${userid}= IPMI Create Random User Plus Password And Privilege
205 ${username} ${userid}= IPMI Create Random User Plus Password And Privilege
233 ${random_username}= Generate Random String 8 [LETTERS]
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/valgrind/valgrind/
H A Davoid-neon-for-targets-which-don-t-support-it.patch6 The sh-mem-random.c test app tries to use neon loads and stores to
15 memcheck/tests/sh-mem-random.c | 2 +-
18 diff --git a/memcheck/tests/sh-mem-random.c b/memcheck/tests/sh-mem-random.c
20 --- a/memcheck/tests/sh-mem-random.c
21 +++ b/memcheck/tests/sh-mem-random.c
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/Item/
H A DDimm.interface.yaml129 Dynamic Random Access Memory.
132 Enhanced Dynamic Random Access Memory.
135 Video Random Access Memory.
138 Static Random Access Memory.
141 Random Access Memory.
159 Cached Dynamic Random Access Memory.
162 Three Dimensional Random Access Memory.
165 Synchronous Dynamic Random Access Memory.
168 Double Data Rate Synchronous Graphics Random-Access Memory.
171 Direct Rambus Dynamic Random Access Memory.
/openbmc/openbmc-test-automation/openpower/localuser/
H A Dtest_ipmi_redfish_user.robot30 # Create IPMI user with random id and username.
31 ${random_userid}= Evaluate random.randint(2, 15) modules=random
32 ${random_username}= Generate Random String 8 [LETTERS]
46 ${random_username}= Generate Random String 8 [LETTERS]
72 ${random_username}= Generate Random String 8 [LETTERS]
100 ${random_username}= Generate Random String 8 [LETTERS]
127 ${random_username}= Generate Random String 8 [LETTERS]
165 Create IPMI Random User With Password And Privilege
166 [Documentation] Create random IPMI user with given password and privilege
175 ${random_username}= Generate Random String 8 [LETTERS]
[all …]
/openbmc/qemu/include/hw/misc/
H A Dnrf51_rng.h2 * nRF51 Random Number Generator
13 * + Named GPIO output "eep_valrdy": Event set when new random value is ready
16 * generation of random values.
18 * random values.
21 * + Stochastic properties of different configurations of the random source
23 * + Generation of unfiltered and filtered random values take at least the
/openbmc/openbmc-test-automation/pldm/
H A Dtest_pldm_bios_attributes.robot30 ${random_attr}= Generate Random String 8 [LETTERS][NUMBERS]
46 ${random_str}= Generate Random String 8 [LETTERS][NUMBERS]
64 ${enum_attr}= Evaluate random.choice(${attr_handles}) modules=random
82 ${int_attr}= Evaluate random.choice(${attr_handles}) modules=random
101 ${str_attr}= Evaluate random.choice(${attr_handles}) modules=random
103 ${random_value}= Generate Random String ${count} [LETTERS][NUMBERS]
117 ... attribute handle with random values with in the range.
140 ... attribute handle with random values with in the range.
164 ... attribute handle with random values with in the range of
H A Dtest_redfish_bios_attributes.robot32 ${random_str}= Generate Random String 8 [LETTERS][NUMBERS]
44 ${enum_attr}= Evaluate random.choice(${attr_handles}) modules=random
57 ${int_attr}= Evaluate random.choice(${attr_handles}) modules=random
72 ${str_attr}= Evaluate random.choice(${attr_handles}) modules=random
74 ${random_value}= Generate Random String ${count} [LETTERS][NUMBERS]
82 ... attribute handle with random values with in the range using Redfish.
104 ... attribute handle with random values with in the range using Redfish.
/openbmc/openbmc/meta-openembedded/meta-perl/recipes-perl/libcrypt/
H A Dlibcrypt-openssl-random-perl_0.17.bb1 SUMMARY = "Crypt::OpenSSL::Random - OpenSSL/LibreSSL pseudo-random number generator access"
3 HOMEPAGE = "https://metacpan.org/pod/Crypt::OpenSSL::Random"
8 SRC_URI = "${CPAN_MIRROR}/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-${PV}.tar.gz"
11 S = "${WORKDIR}/Crypt-OpenSSL-Random-${PV}"
/openbmc/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()
/openbmc/libcper/generator/sections/
H A Dgen-section-dmar.c2 * Functions for generating pseudo-random CPER DMAr error sections.
12 //Generates a single pseudo-random generic DMAr error section, saving the resulting address to the …
16 //Create random bytes. in generate_section_dmar_generic()
36 //Generates a single pseudo-random VT-d DMAr error section, saving the resulting address to the giv…
40 //Create random bytes. in generate_section_dmar_vtd()
60 //Generates a single pseudo-random IOMMU DMAr error section, saving the resulting address to the gi…
64 //Create random bytes. in generate_section_dmar_iommu()
H A Dgen-section-cxl-component.c2 * Functions for generating pseudo-random CXL component error sections.
12 //Generates a single pseudo-random CXL component error section, saving the resulting address to the…
16 //Create a random length for the CXL component event log. in generate_section_cxl_component()
17 //The logs attached here do not necessarily conform to the specification, and are simply random. in generate_section_cxl_component()
20 //Create random bytes. in generate_section_cxl_component()
H A Dgen-section-ccix-per.c2 * Functions for generating pseudo-random CCIX PER error sections.
12 //Generates a single pseudo-random CCIX PER error section, saving the resulting address to the given
16 //Create a random length for the CCIX PER log. in generate_section_ccix_per()
17 …The log attached here does not necessarily conform to the CCIX specification, and is simply random. in generate_section_ccix_per()
20 //Create random bytes. in generate_section_ccix_per()
/openbmc/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",

12345678910>>...91