pub fn new_random_len(len: u32) -> CsrfToken {
        use rand::Rng as _;
        let random_bytes: Vec<u8> = (0..len).map(|_| rand::thread_rng().gen::<u8>()).collect();
        CsrfToken::new(base64::encode_config(
            &random_bytes,
            base64::URL_SAFE_NO_PAD,
        ))
    }
/// Make a new random CSRF token with given amount of bytes
Make a new random CSRF token with given amount of bytes
Make a new random CSRF token with given amount of bytes
pub fn new_random_len(len: u32) -> CsrfToken {
        use rand::Rng as _;
        let random_bytes: Vec<u8> = (0..len).map(|_| rand::thread_rng().gen::<u8>()).collect();
        CsrfToken::new(base64::encode_config(
            &random_bytes,
            base64::URL_SAFE_NO_PAD,
        ))
    }
pub fn new_random_len ( len : u32 ) -> CsrfToken { use rand :: Rng as _ ; let random_bytes : Vec < u8 > = ( 0 .. len ) . map ( | _ | rand :: thread_rng ( ) . gen :: < u8 > ( ) ) . collect ( ) ; CsrfToken :: new ( base64 :: encode_config ( & random_bytes , base64 :: URL_SAFE_NO_PAD , ) ) }
Make a new random CSRF token with given amount of bytes
Make a new random CSRF token with given amount of bytes
len
u32