package detrand
Import Path
google.golang.org/protobuf/internal/detrand (on go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Involved Source Files
Package detrand provides deterministically random functionality.
The pseudo-randomness of these functions is seeded by the program binary
itself and guarantees that the output does not change within a program,
while ensuring that the output is unstable across different builds.
Package-Level Functions (total 4, in which 3 are exported)
Bool returns a deterministically random boolean.
Disable disables detrand such that all functions returns the zero value.
This function is not concurrent-safe and must be called during program init.
Intn returns a deterministically random integer between 0 and n-1, inclusive.
Package-Level Variables (only one, which is unexported)
The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |