We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae3c966 + 75eab41 commit fc8d2c3Copy full SHA for fc8d2c3
lib/mirage.ml
@@ -436,10 +436,12 @@ module Entropy = struct
436
let name _ =
437
"entropy"
438
439
- let module_name () =
+ let module_name () = "Entropy"
440
+
441
+ let construction () =
442
match !mode with
- | `Unix -> "Entropy_unix"
- | `Xen -> "Entropy_xen"
443
+ | `Unix -> "Entropy_unix.Make (OS.Time)"
444
+ | `Xen -> "Entropy_xen"
445
446
let packages () =
447
@@ -449,6 +451,8 @@ module Entropy = struct
449
451
let libraries = packages
450
452
453
let configure t =
454
+ append_main "module %s = %s" (module_name t) (construction t) ;
455
+ newline_main () ;
456
append_main "let %s () =" (name t);
457
append_main " %s.connect ()" (module_name t);
458
newline_main ()
0 commit comments