package nanoid

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

Make (Rng) is a Nano ID generator based on random number generator Rng

Parameters

module Rng : RNG

Signature

val nanoid : ?size:int -> unit -> string

nanoid ?size () generates a random Nano ID of size size, which defaults to 21.

OCaml

Innovation. Community. Security.