vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
161 stars 44 forks source link

use mirage-crypto-rng as csprng #135

Closed ushitora-anqou closed 3 months ago

ushitora-anqou commented 3 months ago

Currently, Rng.init () len always returns the same value:

anqou@bokan:~/pievyt/waq/ocaml-websocket$ dune utop
utop # let a = Websocket.Rng.init () 10;;
utop # let b = Websocket.Rng.init () 10;;
utop # string_of_bool (a = b);;
- : string = "true"

This PR fixes the above issue by using mirage-crypto-rng.