diff --git a/lib/std/rand/ziggurat.zig b/lib/std/rand/ziggurat.zig index c29d3eeb2..a9b11bf4a 100644 --- a/lib/std/rand/ziggurat.zig +++ b/lib/std/rand/ziggurat.zig @@ -16,7 +16,7 @@ pub fn next_f64(random: *Random, comptime tables: ZigTable) f64 { while (true) { // We manually construct a float from parts as we can avoid an extra random lookup here by // using the unused exponent for the lookup table entry. - const bits = random.scalar(u64); + const bits = random.int(u64); const i = @as(usize, bits & 0xff); const u = blk: {