Home
last modified time | relevance | path

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

12

/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
Ddata_augmentation_test.py35 original_data = np.random.rand(10, 3).tolist()
42 np.random.rand(128, 3).tolist(),
43 np.random.rand(66, 2).tolist(),
44 np.random.rand(9, 1).tolist()
Dtrain_test.py50 cnn_data = np.random.rand(60, 128, 3, 1)
51 lstm_data = np.random.rand(60, 128, 3)
Ddata_load.py71 tmp_data = (np.random.rand(seq_length, dim) - 0.5) * noise_level + data[0]
76 tmp_data = (np.random.rand(seq_length, dim) - 0.5) * noise_level + data[-1]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/priv_beacon/
Dpriv_beacon_ivu_long_interval.sh13 -- -argstest rand-int=3
19 -- -argstest rand-int=3
Dpriv_beacon_kr.sh11 -- -argstest rand-int=1
17 -- -argstest rand-int=1
Dpriv_beacon_kr_long_interval.sh13 -- -argstest rand-int=3
19 -- -argstest rand-int=3
Dpriv_beacon_ivu.sh11 -- -argstest rand-int=1
17 -- -argstest rand-int=1
/Zephyr-latest/tests/drivers/clock_control/nrf_onoff_and_bt/src/
Dmain.c102 uint8_t rand; in ZTEST() local
113 err = entropy_get_entropy(entropy, &rand, 1); in ZTEST()
115 backoff = 3 * rand; in ZTEST()
190 uint8_t rand; in ZTEST() local
201 err = entropy_get_entropy(entropy, &rand, 1); in ZTEST()
203 backoff = 3 * rand; in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/ctrl_encrypt/src/
Dmain.c235 const uint8_t rand[] = { RAND }; in ZTEST() local
244 .rand = { RAND }, in ZTEST()
274 err = ull_cp_encryption_start(&conn, rand, ediv, ltk); in ZTEST()
393 const uint8_t rand[] = { RAND }; in ZTEST() local
402 .rand = { RAND }, in ZTEST()
444 err = ull_cp_encryption_start(&conn, rand, ediv, ltk); in ZTEST()
577 const uint8_t rand[] = { RAND }; in ZTEST() local
583 .rand = { RAND }, in ZTEST()
613 err = ull_cp_encryption_start(&conn, rand, ediv, ltk); in ZTEST()
679 const uint8_t rand[] = { RAND }; in ZTEST() local
[all …]
/Zephyr-latest/tests/lib/c_lib/common/src/
Dmain.c1182 a = rand(); in ZTEST()
1201 a = rand(); in ZTEST()
1205 a = rand(); in ZTEST()
1209 a = rand(); in ZTEST()
1213 a = rand(); in ZTEST()
1217 a = rand(); in ZTEST()
1237 a = rand(); in ZTEST()
1240 b = rand(); in ZTEST()
1243 c = rand(); in ZTEST()
1247 a = rand(); in ZTEST()
[all …]
/Zephyr-latest/lib/libc/minimal/source/stdlib/
Drand.c29 int rand(void) in rand() function
/Zephyr-latest/subsys/bluetooth/host/
Dsmp.h94 uint8_t rand[8]; member
136 bool bt_smp_request_ltk(struct bt_conn *conn, uint64_t rand, uint16_t ediv,
Dsmp.c999 (void)memset(keys->ltk.rand, 0, sizeof(keys->ltk.rand)); in smp_br_derive_ltk()
2032 uint8_t rand[8]; in legacy_distribute_keys() member
2034 } rand; in legacy_distribute_keys() local
2036 if (bt_rand((void *)&rand, sizeof(rand))) { in legacy_distribute_keys()
2051 memcpy(info->ltk, rand.key, keys->enc_size); in legacy_distribute_keys()
2067 memcpy(ident->rand, rand.rand, sizeof(ident->rand)); in legacy_distribute_keys()
2068 memcpy(ident->ediv, rand.ediv, sizeof(ident->ediv)); in legacy_distribute_keys()
2075 memcpy(keys->periph_ltk.val, rand.key, in legacy_distribute_keys()
2077 memcpy(keys->periph_ltk.rand, rand.rand, in legacy_distribute_keys()
2078 sizeof(keys->periph_ltk.rand)); in legacy_distribute_keys()
[all …]
Dkeys.h44 uint8_t rand[8]; member
/Zephyr-latest/subsys/bluetooth/mesh/
Dproxy_cli.c199 const uint8_t *rand; member
212 memcpy(&in[8], res->data.priv.rand, 8); in is_hash_equal()
267 res.data.priv.rand = net_buf_simple_pull_mem(buf, 8); in handle_net_id()
Dprovisionee.c245 if (bt_rand(bt_mesh_prov_link.rand, auth_size)) { in send_confirm()
251 LOG_DBG("LocalRandom: %s", bt_hex(bt_mesh_prov_link.rand, auth_size)); in send_confirm()
256 bt_mesh_prov_link.rand, bt_mesh_prov_link.auth, in send_confirm()
410 net_buf_simple_add_mem(&rnd, bt_mesh_prov_link.rand, bt_mesh_prov_auth_size_get()); in send_random()
426 if (!memcmp(data, bt_mesh_prov_link.rand, rand_size)) { in prov_random()
448 data, bt_mesh_prov_link.rand, bt_mesh_prov_link.prov_salt)) { in prov_random()
Dprovisioner.c351 if (bt_rand(bt_mesh_prov_link.rand, auth_size)) { in send_confirm()
357 LOG_DBG("LocalRandom: %s", bt_hex(bt_mesh_prov_link.rand, auth_size)); in send_confirm()
362 bt_mesh_prov_link.rand, bt_mesh_prov_link.auth, in send_confirm()
621 net_buf_simple_add_mem(&rnd, bt_mesh_prov_link.rand, rand_size); in send_random()
637 if (!memcmp(data, bt_mesh_prov_link.rand, rand_size)) { in prov_random()
659 bt_mesh_prov_link.rand, data, bt_mesh_prov_link.prov_salt)) { in prov_random()
Dprov.h137 uint8_t rand[PROV_AUTH_MAX_LEN]; /* Local Random */ member
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp.h97 uint8_t ull_cp_encryption_start(struct ll_conn *conn, const uint8_t rand[8], const uint8_t ediv[2],
103 uint8_t ull_cp_encryption_pause(struct ll_conn *conn, const uint8_t rand[8], const uint8_t ediv[2],
Dull_llcp.c672 uint8_t ull_cp_encryption_start(struct ll_conn *conn, const uint8_t rand[8], const uint8_t ediv[2], in ull_cp_encryption_start()
687 memcpy(ctx->data.enc.rand, rand, sizeof(ctx->data.enc.rand)); in ull_cp_encryption_start()
698 uint8_t ull_cp_encryption_pause(struct ll_conn *conn, const uint8_t rand[8], const uint8_t ediv[2], in ull_cp_encryption_pause()
713 memcpy(ctx->data.enc.rand, rand, sizeof(ctx->data.enc.rand)); in ull_cp_encryption_pause()
/Zephyr-latest/lib/libc/minimal/
DKconfig12 rand() and gmtime(). The globals must be put into a dedicated C
35 In order to make use of the non-reentrant rand() and srand(), it is
DCMakeLists.txt42 zephyr_library_sources_ifdef(CONFIG_MINIMAL_LIBC_RAND source/stdlib/rand.c)
/Zephyr-latest/lib/libc/minimal/include/
Dstdlib.h56 int rand(void);
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbtp_gap.h222 uint8_t rand[16]; member
228 uint8_t rand[16]; member
/Zephyr-latest/scripts/coccinelle/
Dsymbols.txt162 rand

12