package nanoid

  1. Overview
  2. Docs
Nano ID implementation for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=a5c602bbac85b60218297f4705726ed9
sha512=debb9c4c0fb1ccadb4814cda797e96d380b20120e258b3b193635e65215a6fe74ab932fca40ab27d6502f72797326b44329952336bab2e745feb963d03e82419

doc/nanoid.nanoid_os/Nanoid_os/index.html

Module Nanoid_osSource

Native, customizable implementation of Nano ID. Unless you specifically want to customize random number generation, you should probably use the simpler nanoid library, which uses the Simple () implementation from this library.

Sourcemodule type RNG = sig ... end

Random bytes generator

Sourcemodule type S = sig ... end

Nano ID generator

Sourceval pseudo_seeded : string -> (module RNG)

pseudo_seeded seed is a RNG module that generates pseudo random numbers based on the given seed. It is subject to the same limitations as Cryptokit.Random.pseudo_rng

Sourcemodule Make (Rng : RNG) : S

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

Sourcemodule Simple () : S

Simple () is a Nano ID generator based on the pseudo_seeded random number generator seeded with the current system time as given by Unix.gettimeofday.

OCaml

Innovation. Community. Security.