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.8.0
Published
Nov 7, 2017
Platform
js/wasm
Imports
3 packages
Last checked
7 hours ago

Tools for package owners.