From: Richard W.M. Jones Date: Tue, 24 Mar 2015 21:34:17 +0000 (+0000) Subject: Ensure Random.self_init() is called. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=2c153f9737c8c8b62136eb5956de3d48283ec360;p=mclu.git Ensure Random.self_init() is called. Otherwise guests get the same MAC address because there is insufficient randomness in the OCaml PRNG. --- diff --git a/mclu.ml b/mclu.ml index a6e6e1d..b4bbf94 100644 --- a/mclu.ml +++ b/mclu.ml @@ -20,6 +20,8 @@ open Utils open Printf +let () = Random.self_init () + let config_file = let default = try Sys.getenv "MCLU_CONFIG"