async fn generate_nonce<'a>(&'a mut self) -> Result<Vec<u8>, Self::Error>
    where
        W: 'async_trait,
    {
        Ok(self
            .server
            .nonce
            .clone()
            .unwrap_or_else(|| (0..20).map(|_| rand::random::<u8>()).collect()))
    }
/// Generate salt for native auth plugin
Generate salt for native auth plugin
Generate salt for native auth plugin
async fn generate_nonce<'a>(&'a mut self) -> Result<Vec<u8>, Self::Error>
    where
        W: 'async_trait,
    {
        Ok(self
            .server
            .nonce
            .clone()
            .unwrap_or_else(|| (0..20).map(|_| rand::random::<u8>()).collect()))
    }
async fn generate_nonce < ' a > ( & ' a mut self ) -> Result < Vec < u8 > , Self :: Error > where W : ' async_trait , { Ok ( self . server . nonce . clone ( ) . unwrap_or_else ( | | ( 0 .. 20 ) . map ( | _ | rand :: random :: < u8 > ( ) ) . collect ( ) ) ) }
Generate salt for native auth plugin
Generate salt for native auth plugin
&'a mut self
&'a mut self