Function init [src]
The seed must be uniform, secret and secret_seed_length bytes long.
Prototype
pub fn init(secret_seed: [secret_seed_length]u8) Self
Parameters
secret_seed: [secret_seed_length]u8
Source
pub fn init(secret_seed: [secret_seed_length]u8) Self {
var self = Self{ .state = undefined, .offset = 0 };
Cipher.stream(&self.state, 0, secret_seed, nonce);
return self;
}