UuidArbitrary
Rasuvaeff\PropertyTesting\Arbitrary\UuidArbitrary
Class — Package: property-testing-core — Source — Version: v0.1.0-12-g86ead85
Implements: ArbitraryInterface
Generates RFC 4122 version 4 (random) UUID strings in the canonical xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx form, where the version nibble is 4 and the variant nibble is one of 8, 9, a, b.
A UUID is an opaque identifier with no meaningful ordering, so it does not shrink. Randomness comes from the seeded Random, so generated UUIDs are reproducible but NOT suitable for security purposes.
Methods
generate()
generate(Random $random): ShrinkableProduce one random value from this arbitrary's space, together with its shrink tree. Candidates must be ordered most aggressive first (typically toward a zero/empty/identity element) and every branch of the tree must be finite, so shrinking terminates.
Documentation inherited from ArbitraryInterface.