/** * Generate random alpha-numeric string of specified length */ public static function rand_alphanumeric($length) { return Crypt::rand_string('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', $length); }