Skip to content

Commit

Permalink
fix nocrypto_entropy initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Oct 2, 2016
1 parent 67e0df0 commit c3c7eed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,9 @@ let nocrypto = impl @@ object

method configure _ = R.ok (enable_entropy ())
method connect i _ _ =
let s = match Key.(get (Info.context i) target) with
match Key.(get (Info.context i) target) with
| `Xen | `Virtio | `Ukvm -> "Nocrypto_entropy_mirage.initialize ()"
| `Unix | `MacOSX -> "Nocrypto_entropy_lwt.initialize ()"
in
Fmt.strf "%s >|= fun x -> `Ok x" s

end

Expand Down

0 comments on commit c3c7eed

Please sign in to comment.