Index: lib/sanitizer_common/sanitizer_fuchsia.cc =================================================================== --- lib/sanitizer_common/sanitizer_fuchsia.cc +++ lib/sanitizer_common/sanitizer_fuchsia.cc @@ -480,6 +480,14 @@ uptr MainThreadStackBase, MainThreadStackSize; +bool GetRandom(void *buffer, uptr length, bool blocking) { + CHECK_LE(length, MX_CPRNG_DRAW_MAX_LEN); + size_t size; + CHECK_EQ(_mx_cprng_draw(buffer, length, &size), MX_OK); + CHECK_EQ(size, sizeof(buffer)); + return true; +} + } // namespace __sanitizer using namespace __sanitizer; // NOLINT