tiny.simd.fillRandomDistinct
Defined in hash.
Source
Source: lib/simd/src/hash.zig:260
zig
pub fn fillRandomDistinct(comptime T: type, key: u32, output: []T) void { requireDistinctLane(T); if (@bitSizeOf(usize) > 32) { std.debug.assert(output.len <= @as(usize, 1) << 32); } const permutation = Triple32.initKey(key); for (output, 0..) |*value, index| { value.* = @intCast(permutation.hash(@intCast(index))); }}Source: lib/simd/src/root.zig:574
zig
pub const fillRandomDistinct = hash.fillRandomDistinct;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |