Function jump [src]

Prototype

pub fn jump(self: *Xoshiro256) void

Parameters

self: *Xoshiro256

Source

pub fn jump(self: *Xoshiro256) void { var s: u256 = 0; var table: u256 = 0x39abdc4529b1661ca9582618e03fc9aad5a61266f0c9392c180ec6d33cfd0aba; while (table != 0) : (table >>= 1) { if (@as(u1, @truncate(table)) != 0) { s ^= @as(u256, @bitCast(self.s)); } _ = self.next(); } self.s = @as([4]u64, @bitCast(s)); }