0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Random
UraniaZPM 485b996b61 Make benchmarking use std.Io.Clock.awake for timing (#31553)
In #31086, the `std.time.Timer` struct was removed, but this broke the last few programs that used it, those being the benchmarking programs for `std.Random`, `std.hash`, `std.crypto` and `std.unicode`. One more is `zig/perf_test.zig`, but as far as I can tell, that one is broken due to changes in file import rules too, unless I'm launching it wrong.

I also spotted some performance and benchmarking issues with the RNGs, detailed in #31554.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31553
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: UraniaZPM <uraniazpm@noreply.codeberg.org>
Co-committed-by: UraniaZPM <uraniazpm@noreply.codeberg.org>
History 2026-03-18 21:00:08 +01:00
..
Ascon.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
benchmark.zig Make benchmarking use std.Io.Clock.awake for timing (#31553) 2026-03-18 21:00:08 +01:00
ChaCha.zig std.Io: introduce random and randomSecure 2026-01-07 11:03:36 -08:00
Isaac64.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
lcg.zig feat(std.Random): add a linear congruent generator 2026-01-14 12:48:09 +01:00
Pcg.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
RomuTrio.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Sfc64.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
SplitMix64.zig std.rand: Move to std.Random 2024-02-08 14:43:20 +01:00
test.zig update API usage of std.crypto.random to io.random 2026-01-07 11:03:36 -08:00
Xoroshiro128.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Xoshiro256.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
ziggurat.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00