Skip to content

bramvdbogaerde/go-randomstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Random string generator in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages