random

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package random provides the Random contract plus a crypto/rand-backed implementation.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Random

type Random interface {
	String(size int) (string, error)
}

Random defines an interface for generating random values, such as random strings.

type Secure

type Secure struct{}

func NewSecure

func NewSecure() *Secure

func (*Secure) String

func (s *Secure) String(size int) (string, error)

Jump to

Keyboard shortcuts

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