Home
last modified time | relevance | path

Searched refs:random (Results 1 - 17 of 17) sorted by relevance

/drivers/hdf_core/framework/support/platform/test/fuzztest/
H A Drandom.h12 #include <random>
/drivers/hdf_core/adapter/uhdf2/security/src/
H A Dhdf_security.c103 static int32_t HdfGetRandom(int numBytes, uint8_t *random) in HdfGetRandom() argument
105 if (RAND_bytes(random, numBytes) != RAND_OPS_SUCCESS) { in HdfGetRandom()
194 uint64_t random = 0; in HdfRegisterAllDevSecId() local
195 int32_t ret = HdfGetRandom(MAX_RANDOM_BYTE_LEN, (uint8_t *)&random); in HdfRegisterAllDevSecId()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
H A DXTools.js55 return Math.floor(Math.random() * (max - min)) + min;
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Doperate_group_passwd.py12 import random namespace
75 return random.randint(99, max_border)
/drivers/peripheral/audio/test/sample/tools/get_trace_loop/
H A Dget_trace_loop.py25 import random namespace
/drivers/peripheral/huks/hdi_service/
H A Dhuks_hdi_template.h179 #define HDI_CONVERTER_FUNC_GENERATERANDOM(paramSet, random, ret, func) \
183 HDI_CONVERTER_PARAM_IN_BLOB(random, &randomCore) \
185 HDI_ADAPTER_PARAM(random, &randomCore)); \
186 HDI_CONVERTER_PARAM_OUT_BLOB(&randomCore, random)
H A Dhuks_hdi_passthrough_adapter.h42 int32_t HuksHdiAdapterGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random);
H A Dhuks_sa_hdi_struct.h178 * @brief Generate random
180 * @param random output random
183 int32_t (*HuksHdiGenerateRandom)(const struct HksParamSet *paramSet, struct HksBlob *random);
H A Dhuks_hdi_passthrough_adapter.c257 int32_t HuksHdiAdapterGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random) in HuksHdiAdapterGenerateRandom() argument
264 return g_coreEngine->HuksHdiGenerateRandom(paramSet, random); in HuksHdiAdapterGenerateRandom()
H A Dhuks_hdi_service.c134 static int32_t HuksGenerateRandom(struct IHuks *self, const struct HuksParamSet *paramSet, struct HuksBlob *random) in HuksGenerateRandom() argument
138 HDI_CONVERTER_FUNC_GENERATERANDOM(paramSet, random, ret, HuksHdiAdapterGenerateRandom) in HuksGenerateRandom()
/drivers/peripheral/audio/test/sample/tools/gen_cr_by_pr/
H A Dgen_cr_by_pr.py25 import random namespace
/drivers/peripheral/audio/test/sample/tools/get_mem_excel/
H A Dget_mem_excel.py25 import random namespace
/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdi_fuzzer/
H A Dbatteryhdi_fuzz.cpp22 #include <random>
/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/
H A Daudio_alsa_if_lib_render_test.cpp522 buffer[i] = random() & 0xff; in HWTEST_F()
556 mmapBuffer[i] = random() & 0xff; in HWTEST_F()
597 mmapBuffer[i] = random() & 0xff; in HWTEST_F()
/drivers/peripheral/usb/test/unittest/hal/src/
H A Dusbfn_mtp_test.cpp116 int32_t random = open("/dev/urandom", O_RDONLY); in WriteRandomDataToFile() local
117 if (random < 0) { in WriteRandomDataToFile()
118 HDF_LOGE("UsbfnMtpTest::WriteRandomDataToFile get random data failed"); in WriteRandomDataToFile()
131 ssize_t readActual = read(random, static_cast<void *>(buffer), static_cast<size_t>(readSize)); in WriteRandomDataToFile()
133 HDF_LOGW("UsbfnMtpTest::WriteRandomDataToFile read random failed"); in WriteRandomDataToFile()
145 close(random); in WriteRandomDataToFile()
/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dhibernate.cpp28 #include <sys/random.h>
/drivers/hdf_core/framework/core/manager/test/unittest/common/
H A Dhdf_sbuf_test.cpp16 #include <random>
678 * @tc.desc: read write random data test
703 * @tc.desc: read write random data sequence test

Completed in 11 milliseconds