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.15.0
Published
Aug 27, 2019
Platform
js/wasm
Imports
3 packages
Last checked
14 hours ago

Tools for package owners.