Home
last modified time | relevance | path

Searched refs:rand (Results 551 - 575 of 1124) sorted by relevance

1...<<21222324252627282930>>...45

/kernel/linux/linux-5.10/net/bluetooth/
H A Dsmp.c538 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob() argument
582 memcpy(rand, smp->local_rand, 16); in smp_generate_oob()
999 __le64 rand = 0; in smp_random() local
1007 hci_le_start_enc(hcon, ediv, rand, stk, smp->enc_key_size); in smp_random()
1012 __le64 rand = 0; in smp_random() local
1030 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1287 __le64 rand; in smp_distribute_keys() local
1298 get_random_bytes(&rand, sizeof(rand)); in smp_distribute_keys()
1305 smp->enc_key_size, ediv, rand); in smp_distribute_keys()
[all...]
/kernel/linux/linux-6.6/net/bluetooth/
H A Dsmp.c539 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob() argument
583 memcpy(rand, smp->local_rand, 16); in smp_generate_oob()
1000 __le64 rand = 0; in smp_random() local
1008 hci_le_start_enc(hcon, ediv, rand, stk, smp->enc_key_size); in smp_random()
1013 __le64 rand = 0; in smp_random() local
1031 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1293 __le64 rand; in smp_distribute_keys() local
1304 get_random_bytes(&rand, sizeof(rand)); in smp_distribute_keys()
1311 smp->enc_key_size, ediv, rand); in smp_distribute_keys()
[all...]
/third_party/openssl/test/
H A Dacvp_test.c1313 EVP_RAND *rand = NULL; in drbg_test() local
1322 if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, "TEST-RAND", "-fips")) in drbg_test()
1323 || !TEST_ptr(parent = EVP_RAND_CTX_new(rand, NULL))) in drbg_test()
1325 EVP_RAND_free(rand); in drbg_test()
1326 rand = NULL; in drbg_test()
1334 if (!TEST_ptr(rand = EVP_RAND_fetch(libctx, tst->drbg_name, "")) in drbg_test()
1335 || !TEST_ptr(ctx = EVP_RAND_CTX_new(rand, parent))) in drbg_test()
1385 EVP_RAND_free(rand); in drbg_test()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_data_operation_test.cpp309 for (int i = 0; i < 5; i++) { // rand num 5 for test in PreDataForQueryByPreFixKey()
310 Key key = DistributedDBToolsUnitTest::GetRandPrefixKey({'a', 'b'}, 1024); // rand num 1024 for test in PreDataForQueryByPreFixKey()
311 std::string validData = "{\"field_name1\":null, \"field_name2\":" + std::to_string(rand()) + "}"; in PreDataForQueryByPreFixKey()
316 for (int i = 0; i < 5; i++) { // rand num 5 for test in PreDataForQueryByPreFixKey()
317 Key key = DistributedDBToolsUnitTest::GetRandPrefixKey({'a', 'c'}, 1024); // rand num 1024 for test in PreDataForQueryByPreFixKey()
318 std::string validData = "{\"field_name1\":null, \"field_name2\":" + std::to_string(rand()) + "}"; in PreDataForQueryByPreFixKey()
2053 keySuffix.push_back(rand () % 100); in HWTEST_F()
2128 keySuffix.push_back(rand () % 100); in HWTEST_F()
2193 keySuffix.push_back(rand () % 100); in HWTEST_F()
2268 keySuffix.push_back(rand () in HWTEST_F()
[all...]
/third_party/curl/lib/
H A Dws.c32 #include "rand.h"
679 unsigned char rand[16]; in Curl_ws_request() local
713 result = Curl_rand(data, (unsigned char *)rand, sizeof(rand)); in Curl_ws_request()
716 result = Curl_base64_encode((char *)rand, sizeof(rand), &randstr, &randlen); in Curl_ws_request()
/third_party/skia/tests/
H A DTriangulatingPathRendererTests.cpp1017 SkRandom rand; in DEF_TEST() local
1019 auto randomPath = SkPath().moveTo(rand.nextF(), rand.nextF()); in DEF_TEST()
1021 randomPath.lineTo(rand.nextF(), rand.nextF()); in DEF_TEST()
/third_party/qrcodegen/c/
H A Dqrcodegen-test.c170 pureData[i] = (uint8_t)(rand() % 256); in testAddEccAndInterleave()
509 int x = rand() % (size * 2) - size / 2; in testGetSetModuleRandomly()
510 int y = rand() % (size * 2) - size / 2; in testGetSetModuleRandomly()
517 bool newColor = rand() % 2 == 0; in testGetSetModuleRandomly()
520 if (isInBounds && rand() % 2 == 0) in testGetSetModuleRandomly()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
H A Deap_server_aka.c28 u8 rand[EAP_AKA_RAND_LEN]; member
482 eap_sim_msg_add(msg, EAP_SIM_AT_RAND, 0, data->rand, EAP_AKA_RAND_LEN); in eap_aka_build_challenge()
807 data->rand, data->autn, data->ik, in eap_aka_fullauth()
1055 attr->auts, data->rand)) { in eap_aka_process_sync_failure()
1334 os_memcpy(id + 1, data->rand, EAP_AKA_RAND_LEN); in eap_aka_get_session_id()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
H A Deap_server_aka.c28 u8 rand[EAP_AKA_RAND_LEN]; member
482 eap_sim_msg_add(msg, EAP_SIM_AT_RAND, 0, data->rand, EAP_AKA_RAND_LEN); in eap_aka_build_challenge()
807 data->rand, data->autn, data->ik, in eap_aka_fullauth()
1056 attr->auts, data->rand)) { in eap_aka_process_sync_failure()
1336 os_memcpy(id + 1, data->rand, EAP_AKA_RAND_LEN); in eap_aka_get_session_id()
/foundation/CastEngine/castengine_cast_framework/common/src/
H A Dcast_engine_dfx.cpp102 int number = rand() % SEQUENTIAL_ID_CHARS_LENGTH; in GetSequentialId()
/foundation/communication/wifi/wifi/base/security_utils/src/
H A Dwifi_openssl_utils.cpp18 #include <openssl/rand.h>
/kernel/linux/linux-5.10/tools/testing/selftests/ir/
H A Dir_loopback.c134 unsigned int scancode = rand() & protocols[i].mask; in main()
/kernel/linux/linux-5.10/samples/bpf/
H A Dtest_map_in_map_user.c81 port_key = rand() & 0x00FF; in test_map_in_map()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dmmap-basic.c101 expected_nr_events[i] = 1 + rand() % 127; in test__basic_mmap()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c171 r = (rand() % DELAY_US_MAX) + 1; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dvmx_nested_tsc_scaling_test.c160 l1_scale_factor = (rand() % 9) + 2; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c124 sleep(rand() % 4); in sleep_and_loop()
/kernel/linux/linux-6.6/tools/testing/selftests/ir/
H A Dir_loopback.c143 unsigned int scancode = rand() & protocols[i].mask; in main()
/kernel/linux/linux-6.6/samples/bpf/
H A Dtest_map_in_map_user.c82 port_key = rand() & 0x00FF; in test_map_in_map()
/third_party/glfw/tests/
H A Dreopen.c129 monitor = monitors[rand() % monitorCount]; in main()
/third_party/glfw/examples/
H A Dsharing.c124 pixels[y * 16 + x] = rand() % 256; in main()
/third_party/astc-encoder/Source/
H A Dastcenc_mathlib.h427 uint64_t rand(uint64_t state[2]);
/third_party/benchmark/test/
H A Dcomplexity_test.cc114 v.push_back(static_cast<int>(std::rand() % size)); in ConstructRandomVector()
/third_party/gptfdisk/
H A Dguid.cc165 uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0))); in Randomize()
/third_party/icu/icu4c/source/test/intltest/
H A Drbbimonkeytest.h153 void set(BreakRules *rules, IntlTest::icu_rand &rand, UErrorCode &status);

Completed in 28 milliseconds

1...<<21222324252627282930>>...45