class

Pwgen::Sha1Source

Inherits Reference < Object

Provides deterministic pseudo-random number generation using SHA1.

This class implements a PRNG by repeatedly hashing a file's content with an incrementing seed. Useful for generating reproducible passwords.

Constants

BUFFER_SIZE = 20
DEFAULT_SEED = "pwgen"

Constructors

new(spec : String)
Source

Instance methods

next_number(max : Int32) : Int32
Source
to_proc
Source