random

package
v2.8.0-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(n int) string

String returns a cryptographically random, URL safe string with length at least n

TODO(msteffen): move away from UUIDv4 towards this (current implementation of UUIDv4 produces UUIDs via CSPRNG, but the UUIDv4 spec doesn't guarantee that behavior, and we shouldn't assume it going forward)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL