package random

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

Index

Variables

var Rand = rand.New(NewSource())

Rand is a global *rand.Rand instance, which initialized 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.13.0-rc1
Published
Nov 11, 2016
Platform
js/wasm
Imports
7 packages
Last checked
1 minute ago

Tools for package owners.