package grpcrand

import "google.golang.org/grpc/internal/grpcrand"

Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.

Index

Functions

func Float64

func Float64() float64

Float64 implements rand.Float64 on the grpcrand global source.

func Int63n

func Int63n(n int64) int64

Int63n implements rand.Int63n on the grpcrand global source.

func Intn

func Intn(n int) int

Intn implements rand.Intn on the grpcrand global source.

Source Files

grpcrand.go

Version
v1.18.1
Published
Mar 20, 2019
Platform
linux/amd64
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.