tiny.simd.RngStream
Defined in random.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/simd/src/random.zig:295
zig
pub const RngStream = struct { engine: *const AesCtrEngine, stream: u64, counter: u64 = 0, pub fn init(engine: *const AesCtrEngine, stream: u64) RngStream { return .{ .engine = engine, .stream = stream }; } pub fn next(self: *RngStream) u64 { const result = self.engine.generate(self.stream, self.counter); self.counter +%= 1; return result; } pub fn minimum() u64 { return 0; } pub fn maximum() u64 { return std.math.maxInt(u64); }};Source: lib/simd/src/root.zig:512
zig
pub const RngStream = random.RngStream;Complete caller list for RngStream.init
10 direct callers.
lib.simd.src.cuckoo.local.Search[function] — private source atlib/simd/src/cuckoo/local.zig:103in nearest public ownerlib.simd.src.cuckoo.locallib.simd.src.hash.expectMaskedSamples[function] — private source atlib/simd/src/hash.zig:559in nearest public ownertiny.simd.hashtiny.simd.random.fillRandom[function] atlib/simd/src/random.zig:331lib.simd.src.random.test_Highway_AES_counter_accepts_caller_entropy_and_fills_typed_buffers[function] — test source atlib/simd/src/random.zig:534in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_AES_counter_bit_and_byte_distributions_remain_balanced[function] — test source atlib/simd/src/random.zig:558in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_AES_counter_streams_are_deterministic_and_independently_addressed[function] — test source atlib/simd/src/random.zig:511in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_AVX2_AES_counter_and_normalized_float_oracle_matches_exactly[function] — test source atlib/simd/src/random.zig:523in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_normalized_float_spans_the_half-open_signed_unit_interval[function] — test source atlib/simd/src/random.zig:546in nearest public ownertiny.simd.randomtiny.simd.ShardMulPlan.build[method] atlib/simd/src/shardmul.zig:225lib.simd.src.shardmul.fillClusteredKeys[function] — private source atlib/simd/src/shardmul.zig:570in nearest public ownertiny.simd.shardmul
Complete caller list for RngStream.next
7 direct callers.
lib.simd.src.cuckoo.local.Search[function] — private source atlib/simd/src/cuckoo/local.zig:103in nearest public ownerlib.simd.src.cuckoo.locallib.simd.src.hash.expectMaskedSamples[function] — private source atlib/simd/src/hash.zig:559in nearest public ownertiny.simd.hashtiny.simd.random.fillRandom[function] atlib/simd/src/random.zig:331lib.simd.src.random.test_Highway_AES_counter_accepts_caller_entropy_and_fills_typed_buffers[function] — test source atlib/simd/src/random.zig:534in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_AES_counter_bit_and_byte_distributions_remain_balanced[function] — test source atlib/simd/src/random.zig:558in nearest public ownertiny.simd.randomlib.simd.src.random.test_Highway_AES_counter_streams_are_deterministic_and_independently_addressed[function] — test source atlib/simd/src/random.zig:511in nearest public ownertiny.simd.randomlib.simd.src.shardmul.fillClusteredKeys[function] — private source atlib/simd/src/shardmul.zig:570in nearest public ownertiny.simd.shardmul
Audit
| Definitions | 5 |
|---|---|
| Public names | 10 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |