std/rand: fix ziggurat next_f64 call
This commit is contained in:
parent
921d9c9bcb
commit
4c0163b69b
@ -12,7 +12,7 @@ const std = @import("../index.zig");
|
||||
const math = std.math;
|
||||
const Random = std.rand.Random;
|
||||
|
||||
pub fn next_f64(random: *Random, comptime tables: *const ZigTable) f64 {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user