long = bin2hex(random_bytes(20)); $this->short = substr($this->long, 0, 13); $this->microtime = (int)(microtime(true) * 1000000); $this->nonce = new ConsumableNonce(); } public function __toString(): string { return $this->short; } }