package
Version:
v0.0.0-...-b349366
Opens a new window with list of versions in this module.
Published: Aug 7, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 41
Opens a new window with list of known importers.
Documentation
¶
Bytes generates a random byte slice of length n
FillBytes fills the byte slice with random bytes. It does not use an intermediate buffer
Intn returns a random number in the range [0,n)
String returns a random string of length n, it uses the characters of base64.URLEncoding
Interface for random
New returns a new Random, in most cases you can also just use the global funcs
type TTNRandom struct {
Source io.Reader
}
TTNRandom is used as a wrapper around crypto/rand
Source Files
¶
Click to show internal directories.
Click to hide internal directories.