package trand

import "github.com/uber/tchannel-go/trand"

Package trand provides a thread-safe random number generator.

Index

Functions

func New

func New(seed int64) *rand.Rand

New returns a rand.Rand that is threadsafe.

func NewSeeded

func NewSeeded() *rand.Rand

NewSeeded returns a rand.Rand that's threadsafe and seeded with the current time.

Source Files

rand.go

Version
v1.0.9
Published
Jul 21, 2016
Platform
linux/amd64
Imports
3 packages
Last checked
12 hours ago

Tools for package owners.