Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.5.0/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-Core-3.5.0/tests/bsim/bluetooth/mesh/tests_scripts/priv_beacon/
Dpriv_beacon_kr_long_interval.sh14 -- -argstest rand-int=3
21 -- -argstest rand-int=3
Dpriv_beacon_ivu.sh12 -- -argstest rand-int=1
19 -- -argstest rand-int=1
Dpriv_beacon_ivu_long_interval.sh14 -- -argstest rand-int=3
21 -- -argstest rand-int=3
Dpriv_beacon_kr.sh12 -- -argstest rand-int=1
19 -- -argstest rand-int=1
/Zephyr-Core-3.5.0/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-Core-3.5.0/tests/lib/c_lib/src/
Dmain.c1096 a = rand(); in ZTEST()
1115 a = rand(); in ZTEST()
1119 a = rand(); in ZTEST()
1123 a = rand(); in ZTEST()
1127 a = rand(); in ZTEST()
1131 a = rand(); in ZTEST()
1151 a = rand(); in ZTEST()
1154 b = rand(); in ZTEST()
1157 c = rand(); in ZTEST()
1161 a = rand(); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/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-Core-3.5.0/lib/libc/minimal/source/stdlib/
Drand.c29 int rand(void) in rand() function
/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Dsmp.h93 uint8_t rand[8]; member
135 bool bt_smp_request_ltk(struct bt_conn *conn, uint64_t rand, uint16_t ediv,
Dsmp.c935 (void)memset(keys->ltk.rand, 0, sizeof(keys->ltk.rand)); in smp_br_derive_ltk()
1954 uint8_t rand[8]; in legacy_distribute_keys() member
1956 } rand; in legacy_distribute_keys() local
1958 if (bt_rand((void *)&rand, sizeof(rand))) { in legacy_distribute_keys()
1973 memcpy(info->ltk, rand.key, keys->enc_size); in legacy_distribute_keys()
1989 memcpy(ident->rand, rand.rand, sizeof(ident->rand)); in legacy_distribute_keys()
1990 memcpy(ident->ediv, rand.ediv, sizeof(ident->ediv)); in legacy_distribute_keys()
1997 memcpy(keys->periph_ltk.val, rand.key, in legacy_distribute_keys()
1999 memcpy(keys->periph_ltk.rand, rand.rand, in legacy_distribute_keys()
2000 sizeof(keys->periph_ltk.rand)); in legacy_distribute_keys()
[all …]
Dkeys.h39 uint8_t rand[8]; member
/Zephyr-Core-3.5.0/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.c803 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()
818 memcpy(ctx->data.enc.rand, rand, sizeof(ctx->data.enc.rand)); in ull_cp_encryption_start()
829 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()
844 memcpy(ctx->data.enc.rand, rand, sizeof(ctx->data.enc.rand)); in ull_cp_encryption_pause()
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/
Dprov_device.c247 if (bt_rand(bt_mesh_prov_link.rand, auth_size)) { in send_confirm()
253 LOG_DBG("LocalRandom: %s", bt_hex(bt_mesh_prov_link.rand, auth_size)); in send_confirm()
258 bt_mesh_prov_link.rand, bt_mesh_prov_link.auth, in send_confirm()
405 net_buf_simple_add_mem(&rnd, bt_mesh_prov_link.rand, bt_mesh_prov_auth_size_get()); in send_random()
421 if (!memcmp(data, bt_mesh_prov_link.rand, rand_size)) { in prov_random()
443 data, bt_mesh_prov_link.rand, bt_mesh_prov_link.prov_salt)) { in prov_random()
Dprovisioner.c352 if (bt_rand(bt_mesh_prov_link.rand, auth_size)) { in send_confirm()
358 LOG_DBG("LocalRandom: %s", bt_hex(bt_mesh_prov_link.rand, auth_size)); in send_confirm()
363 bt_mesh_prov_link.rand, bt_mesh_prov_link.auth, in send_confirm()
615 net_buf_simple_add_mem(&rnd, bt_mesh_prov_link.rand, rand_size); in send_random()
631 if (!memcmp(data, bt_mesh_prov_link.rand, rand_size)) { in prov_random()
653 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-Core-3.5.0/lib/libc/minimal/include/
Dstdlib.h54 int rand(void);
/Zephyr-Core-3.5.0/samples/bluetooth/peripheral_csc/src/
Dmain.c307 uint32_t rand = sys_rand32_get(); in csc_simulation() local
312 lwet += 1050 + rand % 50; in csc_simulation()
318 lcet += 1000 + rand % 50; in csc_simulation()
/Zephyr-Core-3.5.0/lib/libc/minimal/
DCMakeLists.txt38 zephyr_library_sources_ifdef(CONFIG_MINIMAL_LIBC_RAND source/stdlib/rand.c)
DKconfig12 rand() and gmtime(). The globals must be put into a dedicated C
76 In order to make use of the non-reentrant rand() and srand(), it is
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/btp/
Dbtp_gap.h222 uint8_t rand[16]; member
228 uint8_t rand[16]; member
/Zephyr-Core-3.5.0/scripts/coccinelle/
Dsymbols.txt161 rand

12