Home
last modified time | relevance | path

Searched refs:randSize (Results 1 - 3 of 3) sorted by relevance

/foundation/arkui/napi/test/fuzztest/runactor_fuzzer/
H A Drunactor_fuzzer.cpp75 size_t randSize = std::rand()%(size + 1); in RunActorFuzzTest() local
78 std::string entry(reinterpret_cast<const char*>(data + randSize), size - randSize); in RunActorFuzzTest()
80 g_nativeEngine.RunActor(buffer, randSize, descriptor, entryPoint); in RunActorFuzzTest()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/
H A Ddistributeddb_tools_test.cpp120 uint32_t randSize = 0; in GetRandomKeyValue() local
124 randSize = (simSize == 0) ? 1 : simSize; in GetRandomKeyValue()
126 randSize = defaultSize; in GetRandomKeyValue()
129 value.resize(randSize); in GetRandomKeyValue()
130 RAND_bytes(value.data(), randSize); in GetRandomKeyValue()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_tools_unit_test.cpp360 uint32_t randSize = 0; in GetRandomKeyValue() local
364 randSize = (simSize == 0) ? 1 : simSize; in GetRandomKeyValue()
366 randSize = defaultSize; in GetRandomKeyValue()
369 value.resize(randSize); in GetRandomKeyValue()
370 RAND_bytes(value.data(), randSize); in GetRandomKeyValue()

Completed in 6 milliseconds