public static function nonce(RequestInterface $request = null)
    {
        $url = $request ? $request->getUrl() : null;

        return sha1(uniqid('', true) . $url);
    }
public static function nonce(RequestInterface $request = null)
    {
        $url = $request ? $request->getUrl() : null;

        return sha1(uniqid('', true) . $url);
    }
public static function nonce ( RequestInterface $ request = null ) { $ url = $ request ? $ request -> getUrl ( ) : null ; return sha1 ( uniqid ( '' , true ) . $ url ) ; }
Generate a nonce

@param RequestInterface $request

@return string
Generate a nonce