authorgravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-11-19 21:56:45+13:00
committergravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-11-19 21:56:45+13:00
log4c0163b69bafce753ee31e1bfa3ae0b5ba37fbf2
tree669bb9663a52a3eeaf4c00637cdc0aabd8fe5972
parent921d9c9bcba40ca07283fa3607814bb173d7af7b

std/rand: fix ziggurat next_f64 call


1 files changed, 1 insertions(+), 1 deletions(-)

std/rand/ziggurat.zig+1-1
...@@ -12,7 +12,7 @@ const std = @import("../index.zig");...@@ -12,7 +12,7 @@ const std = @import("../index.zig");
12const math = std.math;12const math = std.math;
13const Random = std.rand.Random;13const Random = std.rand.Random;
1414
15pub fn next_f64(random: *Random, comptime tables: *const ZigTable) f64 {15pub 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 by17 // 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.