git.annexia.org
/
mclu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0d86b0
)
Ensure Random.self_init() is called.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 24 Mar 2015 21:34:17 +0000
(21:34 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 24 Mar 2015 21:34:17 +0000
(21:34 +0000)
Otherwise guests get the same MAC address because there is
insufficient randomness in the OCaml PRNG.
mclu.ml
patch
|
blob
|
history
diff --git
a/mclu.ml
b/mclu.ml
index
a6e6e1d
..
b4bbf94
100644
(file)
--- 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"