Skip to content

Commit

Permalink
Update rng/unix/urandom.ml
Browse files Browse the repository at this point in the history
Co-authored-by: Török Edwin <[email protected]>
  • Loading branch information
hannesm and edwintorok authored Jan 7, 2025
1 parent 9d30a60 commit 5f5f101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rng/unix/urandom.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

type g = In_channel.t * Mutex.t

let block = 2048
(* The OCaml runtime always reads at least IO_BUFFER_SIZE from an input channel, which is currently 64 KiB *)
let block = 65536

let create ?time:_ () =
let ic = In_channel.open_bin "/dev/urandom"
Expand Down

0 comments on commit 5f5f101

Please sign in to comment.