Index: runtime/bin/crypto_fuchsia.cc |
diff --git a/runtime/bin/crypto_fuchsia.cc b/runtime/bin/crypto_fuchsia.cc |
index 4f9ec426163a910c52315179cc6b78000d899456..dedf0e9417eb79ba38f09f3792e8245ba9f8fc6f 100644 |
--- a/runtime/bin/crypto_fuchsia.cc |
+++ b/runtime/bin/crypto_fuchsia.cc |
@@ -20,7 +20,7 @@ bool Crypto::GetRandomBytes(intptr_t count, uint8_t* buffer) { |
(MX_CPRNG_DRAW_MAX_LEN < remaining) ? MX_CPRNG_DRAW_MAX_LEN : remaining; |
size_t res = 0; |
const mx_status_t status = mx_cprng_draw(buffer + read, len, &res); |
- if (status != NO_ERROR) { |
+ if (status != MX_OK) { |
return false; |
} |
read += res; |