Movatterモバイル変換


[0]ホーム

URL:


randutil

packagestandard library
go1.25.2Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:2Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package randutil contains internal randomness utilities for variouscrypto packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcMaybeReadByte

func MaybeReadByte(rio.Reader)

MaybeReadByte reads a single byte from r with 50% probability. This is usedto ensure that callers do not depend on non-guaranteed behaviour, e.g.assuming that rsa.GenerateKey is deterministic w.r.t. a given random stream.

This does not affect tests that pass a stream of fixed bytes as the randomsource (e.g. a zeroReader).

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp