| ... | @@ -12,7 +12,7 @@ const std = @import("../index.zig"); | ... | @@ -12,7 +12,7 @@ const std = @import("../index.zig"); |
| 12 | const math = std.math; | 12 | const math = std.math; |
| 13 | const Random = std.rand.Random; | 13 | const Random = std.rand.Random; |
| 14 | | 14 | |
| 15 | pub fn next_f64(random: *Random, comptime tables: *const ZigTable) f64 { | 15 | pub fn next_f64(random: *Random, comptime tables: ZigTable) f64 { |
| 16 | while (true) { | 16 | while (true) { |
| 17 | // We manually construct a float from parts as we can avoid an extra random lookup here by | 17 | // We manually construct a float from parts as we can avoid an extra random lookup here by |
| 18 | // using the unused exponent for the lookup table entry. | 18 | // using the unused exponent for the lookup table entry. |