Searched refs:GetRandom (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_common_test.cpp | 425 TEST(SanitizerCommon, GetRandom) { in TEST() argument 428 EXPECT_FALSE(GetRandom(nullptr, 32, blocking)); in TEST() 429 EXPECT_FALSE(GetRandom(buffer_1, 0, blocking)); in TEST() 430 EXPECT_FALSE(GetRandom(buffer_1, 512, blocking)); in TEST() 434 EXPECT_TRUE(GetRandom(buffer_1, size, blocking)); in TEST() 435 EXPECT_TRUE(GetRandom(buffer_2, size, blocking)); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_thread.cpp | 18 if (UNLIKELY(!GetRandom(reinterpret_cast<void *>(&seed), sizeof(seed), in RandomSeed()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_fuchsia.cpp | 458 bool GetRandom(void *buffer, uptr length, bool blocking) { in GetRandom() function
|
| H A D | sanitizer_common.h | 1065 bool GetRandom(void *buffer, uptr length, bool blocking = true);
|
| H A D | sanitizer_win.cpp | 1151 bool GetRandom(void *buffer, uptr length, bool blocking) { in GetRandom() function
|
| H A D | sanitizer_mac.cpp | 1385 bool GetRandom(void *buffer, uptr length, bool blocking) { in GetRandom() function
|
| H A D | sanitizer_linux.cpp | 2340 bool GetRandom(void *buffer, uptr length, bool blocking) { in GetRandom() function
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 278 if (UNLIKELY(!GetRandom(reinterpret_cast<void *>(&Cookie), sizeof(Cookie), in init()
|