From 4caa18ea84f50ce68ee8ab1d085978432403a56c Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Wed, 8 Jan 2025 00:07:50 +0100 Subject: [PATCH] Update rng/unix/mc_getrandom_stubs.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Török Edwin --- rng/unix/mc_getrandom_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }