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.21.0
Published
Dec 14, 2020
Platform
js/wasm
Imports
3 packages
Last checked
13 hours ago

Tools for package owners.