Discover Packages
github.com/nexmoinc/gosrvlib
pkg
uidc
package
Version:
v1.8.6
Opens a new window with list of versions in this module.
Published: Aug 17, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package uidc provides cryptographic-grade functions to generate simple time-and-random-based unique identifiers.
NewID128 generates and return a new base-36-string-formatted 128 bit unique ID based on time (high 64 bit) and a random number (low 64 bit).
NewID64 generates and return a new base-36-string-formatted 64 bit unique ID based on time (high 32 bit) and a random number (low 32 bit).
NOTE: the zero time is set to the 1st of january of 10 year ago.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.