src/Neutrino/Support/Str.php
public static function random($length = 16)
    {
        $string = '';
        while (($len = Str::length($string)) < $length) {
            $size = $length - $len;

            $bytes = Str::callRandom($size);

            $string .= Str::substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $size);
        }

        return $string;
    }
public static function random($length = 16)
    {
        $string = '';
        while (($len = Str::length($string)) < $length) {
            $size = $length - $len;

            $bytes = Str::callRandom($size);

            $string .= Str::substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $size);
        }

        return $string;
    }
Generate a more truly "random" alpha-numeric string.

@param  int $length

@return string

@throws \RuntimeException