random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package random holds crypto/rand wrappers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(n int) string

Must returns a URL-safe base64 string (no padding) encoding n bytes from crypto/rand. Panics on rand read failure (bubbles up to the top-level recoverer). Used for OIDC state/nonce/PKCE-verifier values where padding would break URL embedding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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