nanoid entrypoint. Custom alphabets are not yet supported.
Both native and js_of_ocaml environments are supported via a virtual library:
nanoid. Libraries should depend on this library, and final executables should pick an implementation by depending either on
cryptokit pseudo random number generator seeded with the current unix time as given by
Unix.gettimeofday. This should yield satisfying results for most application without ever blocking, unless you need strong cryptographic guarantees for security reasons. Use the
Nanoid_os library to customize the random number generation.