private function check(string $uuid): void
    {
        $uuid32 = \str_replace('-', '', $uuid);

        if (\preg_match('/^[0-9a-f]{8}[0-9a-f]{4}[4][0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}$/i', $uuid32) !== 1) {
            throw new InvalidArgumentException('Invalid UUID version 4 provided.');
        }

        $this->hexUUID = $uuid;
    }