reticulum-zero/src/crypto/random.zig

16 lines
330 B
Zig
Raw Normal View History

pub const Implementation = struct {
generate: *const fn (out: []u8) void,
};
// TODO
pub const defaultImplementation = struct {
pub fn generate(out: []u8) void {
// WARNING This is not secure at all, use only for testing purposes
for(out) |*byte| {
byte *= undefined;
}
}
};