class

KemalIdentity::Testing::DeterministicRandom

Inherits KemalIdentity::RandomSource < Reference < Object

A reproducible byte source.

Not secure and not meant to be: a spec that asserts two logins produce distinct session digests needs the bytes to be distinct and reproducible, not unpredictable. Passes the same RandomSource contract spec as SecureRandomSource.

Constructors

new(seed : Int32 = 1)
Source

Instance methods

bytes(count : Int32) : Bytes

count cryptographically random bytes.

Source
calls
Source