package core_unix

  1. Overview
  2. Docs
Unix-specific portions of Core

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.2.tar.gz
sha256=486d0e954603960fa081b3fd23e3cc3e50ac0892544acd35f9c2919c4bf5f67b

doc/src/core_unix.uuid/uuid_unix.ml.html

Source file uuid_unix.ml

1
2
3
4
5
6
7
8
open! Core
module Unix = Core_unix

let gethostname = Memo.unit Unix.gethostname

let create () =
  Uuid.Private.create ~hostname:(gethostname ()) ~pid:(Unix.getpid () |> Pid.to_int)
;;
OCaml

Innovation. Community. Security.