Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 521 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 521 Bytes

Random string generator

This package aims to provide a function to generate random strings. It uses the crypto/rand package to generate a random number from 0 up to 2^64-1 and then converts it to a Base62 string.

Although it is possible to generate unique strings with this, it is possible that it returns duplicates. The chance of duplicates is very small, but when working with a very large number of generations duplicates may occur.

Usage

See example/example.go

License

MIT