/drivers/hdf_core/framework/support/platform/test/fuzztest/ |
H A D | random.h | 12 #include <random>
|
/drivers/hdf_core/adapter/uhdf2/security/src/ |
H A D | hdf_security.c | 103 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 D | XTools.js | 55 return Math.floor(Math.random() * (max - min)) + min;
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | operate_group_passwd.py | 12 import random
namespace 75 return random.randint(99, max_border)
|
/drivers/peripheral/audio/test/sample/tools/get_trace_loop/ |
H A D | get_trace_loop.py | 25 import random namespace
|
/drivers/peripheral/huks/hdi_service/ |
H A D | huks_hdi_template.h | 179 #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 D | huks_hdi_passthrough_adapter.h | 42 int32_t HuksHdiAdapterGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random);
|
H A D | huks_sa_hdi_struct.h | 178 * @brief Generate random
180 * @param random output random
183 int32_t (*HuksHdiGenerateRandom)(const struct HksParamSet *paramSet, struct HksBlob *random);
|
H A D | huks_hdi_passthrough_adapter.c | 257 int32_t HuksHdiAdapterGenerateRandom(const struct HksParamSet *paramSet, struct HksBlob *random)
in HuksHdiAdapterGenerateRandom() argument 264 return g_coreEngine->HuksHdiGenerateRandom(paramSet, random);
in HuksHdiAdapterGenerateRandom()
|
H A D | huks_hdi_service.c | 134 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 D | gen_cr_by_pr.py | 25 import random namespace
|
/drivers/peripheral/audio/test/sample/tools/get_mem_excel/ |
H A D | get_mem_excel.py | 25 import random namespace
|
/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdi_fuzzer/ |
H A D | batteryhdi_fuzz.cpp | 22 #include <random>
|
/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/ |
H A D | audio_alsa_if_lib_render_test.cpp | 522 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 D | usbfn_mtp_test.cpp | 116 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 D | hibernate.cpp | 28 #include <sys/random.h>
|
/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
H A D | hdf_sbuf_test.cpp | 16 #include <random> 678 * @tc.desc: read write random data test 703 * @tc.desc: read write random data sequence test
|