Merge "vts: Upsize 8bit uniform_int_distribution" am: 13a42ed14d am: c7e13d9244

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2110725

Change-Id: Ibf6a3bc540b5dd06a24330b506a98e2f3bca2ad5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jordan Abrahams-Whitehead
2022-05-31 23:08:56 +00:00
committed by Automerger Merge Worker
3 changed files with 3 additions and 3 deletions

View File

@@ -1262,7 +1262,7 @@ class CompilationCachingSecurityTest
FILE* pFile = fopen(filename.c_str(), "a");
uint32_t appendLength = getRandomInt(1, 256);
for (uint32_t i = 0; i < appendLength; i++) {
ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF);
ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF);
}
fclose(pFile);
*skip = false;

View File

@@ -1253,7 +1253,7 @@ class CompilationCachingSecurityTest
FILE* pFile = fopen(filename.c_str(), "a");
uint32_t appendLength = getRandomInt(1, 256);
for (uint32_t i = 0; i < appendLength; i++) {
ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF);
ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF);
}
fclose(pFile);
*skip = false;

View File

@@ -1068,7 +1068,7 @@ class CompilationCachingSecurityTest
FILE* pFile = fopen(filename.c_str(), "a");
uint32_t appendLength = getRandomInt(1, 256);
for (uint32_t i = 0; i < appendLength; i++) {
ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF);
ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF);
}
fclose(pFile);
*skip = false;