pub fn new() -> Result<TokenAuthority, Error> {
        let mut file = File::open(Path::new(RANDOMNESS_POOL)).map_err(Error::EntropyPool)?;

        Ok(TokenAuthority {
            cipher: TokenAuthority::create_cipher(&mut file)?,
            num_encrypted_tokens: 0,
            entropy_pool: file,
            aad: "".to_string(),
        })
    }
/// Create a new token authority entity.
Create a new token authority entity.
Create a new token authority entity .
pub fn new() -> Result<TokenAuthority, Error> {
        let mut file = File::open(Path::new(RANDOMNESS_POOL)).map_err(Error::EntropyPool)?;
        Ok(TokenAuthority {
            cipher: TokenAuthority::create_cipher(&mut file)?,
            num_encrypted_tokens: 0,
            entropy_pool: file,
            aad: "".to_string(),
        })
    }
pub fn new ( ) -> Result < TokenAuthority , Error > { let mut file = File :: open ( Path :: new ( RANDOMNESS_POOL ) ) . map_err ( Error :: EntropyPool ) ? ; Ok ( TokenAuthority { cipher : TokenAuthority :: create_cipher ( & mut file ) ? , num_encrypted_tokens : 0 , entropy_pool : file , aad : " " . to_string ( ) , } ) }
Create a new token authority entity.
Create a new token authority entity .