| author | |
| committer | |
| log | e073c8a2b1570b24a659ebaeddacf957c15229fa |
| tree | 9a9dc7e95c15f7b0674b461a76ef40f67ed9adea |
| parent | 6b2274fd994edfd26db49d4a2599bbace881fd7a |
Ziggurat rng was using deprecated `random.scalar(u64)` which was causing compile errors on calls to public facing stdlib APIs (randExp) on 0.6+, this fixed those errors.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/rand/ziggurat.zig+1-1| ... | ... | @@ -16,7 +16,7 @@ pub fn next_f64(random: *Random, comptime tables: ZigTable) f64 { |
| 16 | 16 | while (true) { |
| 17 | 17 | // We manually construct a float from parts as we can avoid an extra random lookup here by |
| 18 | 18 | // using the unused exponent for the lookup table entry. |
| 19 | const bits = random.scalar(u64); | |
| 19 | const bits = random.int(u64); | |
| 20 | 20 | const i = @as(usize, bits & 0xff); |
| 21 | 21 | |
| 22 | 22 | const u = blk: { |