package ulid

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module UlidSource

ULID implementation.

ULIDs are Universally Unique Lexicographically Sortable Identifier See the spec at https://github.com/ulid/spec

Release %%VERSION%% - %%PKG_HOMEPAGE%%

Sourceval get_nocrypto_rng : unit -> int -> int

A getter for the initialized nocrypto RNG in function form int -> int.

Sourceval encode_time : int -> int -> string

Encodes a UNIX timestamp in milliseconds into Base32.

Sourceval encode_random : int -> (int -> int) -> string

Encodes specified number of random ints into Base32 using specified PRNG.

Sourceval increment_base_32 : string -> string

Increments a Base32 encoded string by 1

Sourceval ulid : ?seed_time:int -> unit -> string

Returns a randomly generated ULID using the current time or an optional seed time

Sourceval ulid_factory : ?prng:(int -> int) -> unit -> ?seed_time:int -> unit -> string

Returns a function to generate ULIDs using an optionally specified PRNG

Sourceval monotonic_factory : ?prng:(int -> int) -> unit -> ?seed_time:int -> unit -> string

Returns a function to generate monotonic ULIDs using an optionally specified PRNG

OCaml

Innovation. Community. Security.