Source file uuid_unix.ml

1
2
3
4
5
open! Core_kernel

let gethostname = Memo.unit Unix.gethostname

let create () = Uuid.Private.create ~hostname:(gethostname ()) ~pid:(Unix.getpid ())