pub const Csprng = struct rng: std.Random.DefaultCsprngpub fn isInitialized(c: *const Csprng) bool154
155
156
157
158
159
160
161
162
163
164
165
166
167pub const Csprng = struct {
rng: std.Random.DefaultCsprng,
pub const uninitialized: Csprng = .{ .rng = .{
.state = undefined,
.offset = std.math.maxInt(usize),
} };
pub const seed_len = std.Random.DefaultCsprng.secret_seed_length;
pub fn isInitialized(c: *const Csprng) bool {
return c.rng.offset != std.math.maxInt(usize);
}
}