Searched refs:getRandomInt (Results 1 – 1 of 1) sorted by relevance
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | CompilationCachingTests.cpp | 1282 T getRandomInt(T lower, T upper) { in getRandomInt() function in android::hardware::neuralnetworks::V1_2::vts::functional::CompilationCachingSecurityTest 1297 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache() 1301 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache() 1309 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache() 1311 ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF); in appendBytesToCache() 1403 getRandomInt(0u, static_cast<uint32_t>(Constant::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P() 1404 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()
|