FreeFormGenerator

private class FreeFormGenerator(random: Random) : NoArgGenerator(source)

Generates v8 UUIDs.

Works by generating a v4 UUID and then replacing the version nibble.

Constructors

Link copied to clipboard
constructor(random: Random)

Properties

Link copied to clipboard
private val innerGenerator: RandomBasedGenerator

Generates v4 UUIDs.

Functions

Link copied to clipboard
open override fun generate(): UUID

Generates a v8 UUID.

Link copied to clipboard
open override fun getType(): UUIDType

Returns UUIDType.FREE_FORM.