Skip to content

Random

Everything under Quiote\Support\Random.

ClassDescription
RandomnessStatic facade over the process-wide source of entropy, mirroring Clock.
SeededRandomnessA source of entropy that is not random at all: the same seed always produces the same sequence of SeededRandomness::bytes()/SeededRandomness::int() results, in call order.
SystemRandomnessThe real source of entropy: SystemRandomness::bytes()/SystemRandomness::int() answer from PHP’s CSPRNG exactly like random_bytes()/random_int() always did.
InterfaceDescription
RandomnessInterfaceThe one seam every direct random_bytes()/random_int() call site on the request path is meant to go through instead.