package randutil

import "github.com/containerd/containerd/pkg/randutil"

Package randutil provides utilities for cyrpto/rand.

Index

Functions

func Int

func Int() int

Int is similar to math/rand.Int but uses crypto/rand.Reader under the hood.

func Int63

func Int63() int64

Int63 is similar to math/rand.Int63 but uses crypto/rand.Reader under the hood.

func Int63n

func Int63n(n int64) int64

Int63n is similar to math/rand.Int63n but uses crypto/rand.Reader under the hood.

func Intn

func Intn(n int) int

Intn is similar to math/rand.Intn but uses crypto/rand.Reader under the hood.

Source Files

randutil.go

Version
v1.7.13
Published
Jan 31, 2024
Platform
darwin/amd64
Imports
3 packages
Last checked
now

Tools for package owners.