Supported Versions: PHP 7, PHP 8
Get cryptographically secure random bytes
<?php random_bytes(int $length): string
<?php         if (!$gid = self::$gid) {

            $gid = self::$gid = md5(random_bytes(6)); // Unique string used to detect the special $GLOBALS variable

        }

        $arrayStub = new Stub();

        $arrayStub->type = Stub::TYPE_ARRAY;