Documentation
¶
Overview ¶
Package random provides some random functions.
Index ¶
Constants ¶
View Source
const ( NumCharset = "0123456789" HexCharset = NumCharset + "abcdefABCDEF" HexLowerCharset = NumCharset + "abcdef" HexUpperCharset = NumCharset + "ABCDEF" AlphaLowerCharset = "abcdefghijklmnopqrstuvwxyz" AlphaUpperCharset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" AlphaCharset = AlphaLowerCharset + AlphaUpperCharset AlphaNumLowerCharset = NumCharset + AlphaLowerCharset AlphaNumUpperCharset = NumCharset + AlphaUpperCharset AlphaNumCharset = NumCharset + AlphaCharset )
Pre-define some charsets to generate the random string.
Variables ¶
View Source
var DefaultCharset = AlphaNumLowerCharset
DefaultCharset is the default charset.
Functions ¶
func SeedString ¶
func SeedString() string
SeedString returns a random 64-bit signed integer string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.