package random

import "github.com/docker/docker/pkg/random"

Index

Variables

var Rand = rand.New(NewSource())

Rand is a global *rand.Rand instance, which initilized with NewSource() source.

var Reader io.Reader = &reader{rnd: Rand}

Reader is a global, shared instance of a pseudorandom bytes generator. It doesn't consume entropy.

Functions

func NewSource

func NewSource() rand.Source

NewSource returns math/rand.Source safe for concurrent use and initialized with current unix-nano timestamp

Source Files

random.go

Version
v1.9.0-rc3
Published
Oct 28, 2015
Platform
js/wasm
Imports
7 packages
Last checked
3 minutes ago

Tools for package owners.