diff --git a/rng/unix/mc_getrandom_stubs.c b/rng/unix/mc_getrandom_stubs.c index 11cfb97e..09c74b78 100644 --- a/rng/unix/mc_getrandom_stubs.c +++ b/rng/unix/mc_getrandom_stubs.c @@ -75,6 +75,6 @@ void raw_getrandom(uint8_t *data, size_t len) { #endif CAMLprim value mc_getrandom (value buf, value off, value len) { - raw_getrandom(_bp_uint8_off(buf, off), Int_val(len)); + raw_getrandom(_bp_uint8_off(buf, off), Long_val(len)); return Val_unit; }