diff --git a/crypto/rand_extra/fuchsia.c b/crypto/rand_extra/fuchsia.c index 9355d8c9..ce8356c0 100644 --- a/crypto/rand_extra/fuchsia.c +++ b/crypto/rand_extra/fuchsia.c @@ -19,20 +19,20 @@ #include #include -#include +#include #include "../fipsmodule/rand/internal.h" void CRYPTO_sysrand(uint8_t *out, size_t requested) { while (requested > 0) { - size_t output_bytes_this_pass = MX_CPRNG_DRAW_MAX_LEN; + size_t output_bytes_this_pass = ZX_CPRNG_DRAW_MAX_LEN; if (requested < output_bytes_this_pass) { output_bytes_this_pass = requested; } size_t bytes_drawn; - mx_status_t status = - mx_cprng_draw(out, output_bytes_this_pass, &bytes_drawn); - if (status != MX_OK) { + zx_status_t status = + zx_cprng_draw(out, output_bytes_this_pass, &bytes_drawn); + if (status != ZX_OK) { abort(); } requested -= bytes_drawn;