init
The seed must be uniform, secret and secret_seed_length bytes long.
Function parameters
Parameters
- secret_seed:[secret_seed_length]u8
The seed must be uniform, secret and `secret_seed_length` bytes long.
Functions
- init
- The seed must be uniform, secret and `secret_seed_length` bytes long.
- addEntropy
- Inserts entropy to refresh the internal state.
- random
- Returns a `std.Random` structure backed by the current RNG.
- fill
- Fills the buffer with random bytes.
= 32
Values
Source
Implementation
pub fn init(secret_seed: [secret_seed_length]u8) Self {
var self = Self{ .state = Ascon.initXof() };
self.addEntropy(&secret_seed);
return self;
}