I accidentally tried to use secure_random as a Flow.source with Flow.copy which of course in retrospect is silly because there's no End_of_file to raise and the program just hangs. Maybe others might accidentally do the same and get confused, the best thing I think is maybe to add some documentation to stdenv ?
|
val secure_random : <secure_random : #Flow.source as 'a; ..> -> 'a |
|
(** [secure_random t] is a source of random bytes suitable for cryptographic purposes. *) |