Home
last modified time | relevance | path

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

123456

/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/ppp/
H A Dmagic.c43 * randm.c - Random number generator program file.
87 static long magic_randcount; /* Pseudo-random incrementer */
88 static u32_t magic_randomseed; /* Seed used for random number generation. */
91 * Churn the randomness pool on a random event. Call this early and often
92 * on random and semi-random system events to build randomness in time for
95 * If new random data is available, pass a pointer to that and it will be
131 * Initialize the random number generator.
138 * Randomize our random seed value.
145 * magic_random_bytes - Fill a buffer with random bytes.
147 * Use the random pool to generate random data. This degrades to pseudo
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/ppp/
H A Dmagic.c43 * randm.c - Random number generator program file.
87 static long magic_randcount; /* Pseudo-random incrementer */
88 static u32_t magic_randomseed; /* Seed used for random number generation. */
91 * Churn the randomness pool on a random event. Call this early and often
92 * on random and semi-random system events to build randomness in time for
95 * If new random data is available, pass a pointer to that and it will be
131 * Initialize the random number generator.
138 * Randomize our random seed value.
145 * magic_random_bytes - Fill a buffer with random bytes.
147 * Use the random pool to generate random data. This degrades to pseudo
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/
H A Drandm.c2 * randm.c - Random number generator program file.
53 static long randCount = 0; /* Pseudo-random incrementer */
60 * Initialize the random number generator.
74 * Churn the randomness pool on a random event. Call this early and often
75 * on random and semi-random system events to build randomness in time for
78 * If new random data is available, pass a pointer to that and it will be
107 * Use the random pool to generate random data. This degrades to pseudo
108 * random when used faster than randomness is supplied using churnRand().
143 * Return a new random number.
161 static u32_t avRandomSeed = 0; /* Seed used for random number generation. */
[all …]
H A Drandm.h2 * randm.h - Random number generator header file.
41 * Initialize the random number generator.
46 * Churn the randomness pool on a random event. Call this early and often
47 * on random and semi-random system events to build randomness in time for
50 * If new random data is available, pass a pointer to that and it will be
56 * Randomize our random seed value. To be called for truely random events
66 * Use the random pool to generate random data. This degrades to pseudo
67 * random when used faster than randomness is supplied using churnRand().
76 * Return a new random number.
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/
H A Dble_hs_id.h38 * Generates a new random address. This function does not configure the device
42 * @param nrpa The type of random address to generate:
53 * Sets the device's random address. The address type (static vs.
57 * @param rnd_addr The random address to set.
61 * valid static random or non-resolvable
69 * identity addresses: one public and one random. The id_addr_type argument
100 * if we have a random static address:
101 * --> RPA with static random ID
106 * if we have a random static address:
107 * --> random static address
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/util/src/
H A Daddr.c30 /* XXX: It is unfortunate that the function to retrieve the random address in ble_hs_util_load_rand_addr()
32 * automically restore a random address. in ble_hs_util_load_rand_addr()
52 /* If we already have a random address, then we are done. */ in ble_hs_util_ensure_rand_addr()
58 /* Otherwise, try to load a random address. */ in ble_hs_util_ensure_rand_addr()
64 /* Configure nimble to use the random address. */ in ble_hs_util_ensure_rand_addr()
79 /* Try to load a random address. */ in ble_hs_util_ensure_addr()
82 /* No random address; try to load a public address. */ in ble_hs_util_ensure_addr()
89 /* No public address; try to load a random address. */ in ble_hs_util_ensure_addr()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/netif/ppp/
H A Dmagic.h45 * randm.h - Random number generator header file.
88 * Initialize the random number generator.
93 * Randomize our random seed value. To be called for truely random events
99 * Return a new random number.
104 * Fill buffer with random bytes
106 * Use the random pool to generate random data. This degrades to pseudo
107 * random when used faster than randomness is supplied using magic_churnrand().
116 * Return a new random number between 0 and (2^pow)-1 included.
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/netif/ppp/
H A Dmagic.h45 * randm.h - Random number generator header file.
92 * Initialize the random number generator.
97 * Randomize our random seed value. To be called for truely random events
103 * Return a new random number.
108 * Fill buffer with random bytes
110 * Use the random pool to generate random data. This degrades to pseudo
111 * random when used faster than randomness is supplied using magic_churnrand().
120 * Return a new random number between 0 and (2^pow)-1 included.
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/
H A Decc.h198 * @brief Generates a random integer in the range 0 < random < top.
199 * Both random and top have num_words words.
200 * @param random OUT -- random integer in the range 0 < random < top
203 * @return a random integer in the range 0 < random < top
205 int uECC_generate_random_int(uECC_word_t *random, const uECC_word_t *top,
210 * The RNG function should fill 'size' random bytes into 'dest'. It should
211 * return 1 if 'dest' was filled with random data, or 0 if the random data could
212 * not be generated. The filled-in values should be either truly random, or from
222 * POSIX-compliant system that supports /dev/random or /dev/urandom, you can
228 * @brief Set the function that will be used to generate random bytes. The RNG
[all …]
H A Dhmac_prng.h37 * Overview: A pseudo-random number generator (PRNG) generates a sequence
39 * for a sequence of truly random numbers. The NIST Special
41 * sequences of pseudo random numbers, including the HMAC-PRNG one
46 * entropy source to provide a truly random seed as well as the
65 * 3) call tc_hmac_prng_generate to out put the pseudo-random data.
145 * Generates outlen pseudo-random bytes into out buffer, updates prng
H A Dctr_prng.h34 * Overview: A pseudo-random number generator (PRNG) generates a sequence
36 * for a sequence of truly random numbers. The NIST Special
38 * sequences of pseudo random numbers, including the CTR-PRNG one
43 * entropy source to provide a truly random seed as well as the
54 * 3) call tc_ctr_prng_generate to output the pseudo-random data
134 * Generates outlen pseudo-random bytes into out buffer, updates prng
H A Decc_platform_specific.h62 * The RNG function should fill 'size' random bytes into 'dest'. It should
63 * return 1 if 'dest' was filled with random data, or 0 if the random data could
64 * not be generated. The filled-in values should be either truly random, or from
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_rand.c36 /* This is a simple circular buffer for holding N samples of random data */
65 /* Stop generating random numbers as we are full */ in ble_ll_rand_sample()
72 /* Get 'len' bytes of random data */
134 /* Get 24 bits of random data */ in ble_ll_rand_prand_get()
150 * Start the generation of random numbers
169 * Initialize LL random number generation. Should be called only once on
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/include/controller/
H A Dble_hw.h60 /* Random number generation */
65 * Start the random number generator
72 * Stop the random generator
79 * Read the random number generator.
109 /* Returns random static address or -1 if not present */
H A Dble_ll_adv.h66 * The advertising address (AdvA) is a public address (TxAdd=0) or random
77 * AdvA is the advertisers public address (TxAdd=0) or random address
80 * InitA is the initiators public or random address. This is the address
91 * The advertising address (AdvA) is a public address (TxAdd=0) or random
103 * The advertising address (AdvA) is a public address (TxAdd=0) or random
H A Dble_ll.h342 * random address.
386 * InitA is the initiators public (TxAdd=0) or random (TxAdd=1) address.
387 * AdvaA is the advertisers public (RxAdd=0) or random (RxAdd=1) address.
398 * hop_inc: Hop increment used for frequency hopping. Random value in
415 /* 'Boolean' function returning true if address is a valid random address */
429 /* Is 'addr' our device address? 'addr_type' is public (0) or random (!=0) */
432 /* Get identity address 'addr_type' is public (0) or random (!=0) */
486 /* Set random address */
508 /* Random numbers */
/nrf52832-nimble/packages/NimBLE-latest/docs/ble_setup/
H A Dble_addr.rst49 Method 3: Configure a random address at runtime
52 Random addresses get configured through the NimBLE host. The following
53 two functions are used in random address configuration:
56 Generates a new random address.
58 Sets the device's random address.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/native/src/
H A Dble_hw.c42 /* Returns random static address or -1 if not present */
136 * Initialize the random number generator
150 * Start the random number generator
161 * Stop the random generator
172 * Read the random number generator.
/nrf52832-nimble/nordic/nrfx/hal/
H A Dnrf_rng.h45 * @brief Hardware access layer for managing the Random Number Generator (RNG) peripheral.
56 …NRF_RNG_TASK_START = offsetof(NRF_RNG_Type, TASKS_START), /**< Start the random number generator. …
57 …NRF_RNG_TASK_STOP = offsetof(NRF_RNG_Type, TASKS_STOP) /**< Stop the random number generator. */
66 …NRF_RNG_EVENT_VALRDY = offsetof(NRF_RNG_Type, EVENTS_VALRDY) /**< New random number generated even…
170 * @brief Function for getting the previously generated random value.
172 * @return Previously generated random value.
/nrf52832-nimble/packages/NimBLE-latest/apps/ext_advertiser/src/
H A Dext_advertiser.c82 /* advertise using random addr */ in start_ext_max_events()
101 /* set random (NRPA) address for instance */ in start_ext_max_events()
180 /* advertise using random addr */ in start_legacy_duration()
193 /* set random (NRPA) address for instance */ in start_legacy_duration()
245 /* advertise using random addr */ in start_scannable_legacy_ext()
257 /* set random (NRPA) address for instance */ in start_scannable_legacy_ext()
329 /* advertise using random addr */ in start_scannable_ext()
342 /* set random (NRPA) address for instance */ in start_scannable_ext()
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_rng.h45 * @brief Random Number Generator (RNG) peripheral driver.
89 * @brief Function for starting the random value generation.
96 * @brief Function for stoping the random value generation.
98 * Function disables interrupts in perihperal and stop generation of new random values.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf52/src/
H A Dble_hw.c44 /* Random number generator isr callback */
98 /* Returns random static address or -1 if not present */
285 * Random number generator ISR.
314 * Initialize the random number generator
347 * Start the random number generator
369 * Stop the random generator
389 * Read the random number generator.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf51/src/
H A Dble_hw.c38 /* Random number generator isr callback */
92 /* Returns random static address or -1 if not present */
279 * Random number generator ISR.
308 * Initialize the random number generator
337 * Start the random number generator
359 * Stop the random generator
379 * Read the random number generator.
/nrf52832-nimble/packages/NimBLE-latest/apps/bleprph/src/
H A Dgatt_svr.c29 * o random-number-generator: generates a random 32-bit number each time
64 /*** Characteristic: Random number generator. */
122 /* Respond with a 32-bit random number. */ in gatt_svr_chr_access_sec_test()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/
H A Dble_hs_id.c86 * identity addresses: one public and one random. The id_addr_type argument
277 * Clears both the public and random addresses. This function is necessary
278 * when the controller loses its random address (e.g., on a stack reset).

123456