[0] is a gradient where the probability of lower values decreases across it [1] is completely random and hence uncompressable
fn testingFreqBufs() !*[2][65536]u8
fn testingFreqBufs() !*[2][65536]u8 {
const fbufs = try std.testing.allocator.create([2][65536]u8);
var prng: std.Random.DefaultPrng = .init(std.testing.random_seed);
prng.random().bytes(&fbufs[0]);
prng.random().bytes(&fbufs[1]);
for (0.., &fbufs[0], fbufs[1]) |i, *grad, rand| {
const prob = @as(u8, @intCast(255 - i / (fbufs[0].len * 256)));
grad.* /= @max(1, rand / @max(1, prob));
}
return fbufs;
}