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.18
Published
Jun 5, 2024
Platform
js/wasm
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.