Documentation

Index

Constants

This section is empty.

Variables

View Source
var Reader io.Reader

    Reader provides a random reader that can reset during testing.

    Functions

    func CryptoRandFloat64

    func CryptoRandFloat64() (float64, error)

      CryptoRandFloat64 returns a random float64 obtained from the crypto rand source.

      func Float64

      func Float64(reader io.Reader) (float64, error)

        Float64 returns a float64 read from an io.Reader source. The returned float will be between [0.0, 1.0).

        Types

        This section is empty.

        Source Files