Skip to content

Document that secure_random isn't quite a Flow.source #422

@patricoferris

Description

@patricoferris

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 ?

eio/lib_eio/eio.mli

Lines 246 to 247 in 80f5352

val secure_random : <secure_random : #Flow.source as 'a; ..> -> 'a
(** [secure_random t] is a source of random bytes suitable for cryptographic purposes. *)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions