public function random($prefix = ''){
            $key = $prefix.$this->create().strval(rand(strlen($_SERVER['REMOTE_ADDR']), rand(111,2222)));
            $uniqid = uniqid($key);
            return md5($uniqid);
        }
public function random($prefix = ''){
            $key = $prefix.$this->create().strval(rand(strlen($_SERVER['REMOTE_ADDR']), rand(111,2222)));
            $uniqid = uniqid($key);
            return md5($uniqid);
        }
public function random ( $ prefix = '' ) { $ key = $ prefix . $ this -> create ( ) . strval ( rand ( strlen ( $ _SERVER [ 'REMOTE_ADDR' ] ) , rand ( 111 , 2222 ) ) ) ; $ uniqid = uniqid ( $ key ) ; return md5 ( $ uniqid ) ; }
create a random string

@param string $prefix
@return string
create a random string