authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-01-24 23:36:53 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-01-24 23:36:53 -08:00
log7fba8434132d87c55f764bfdaf43d444dadd9094
treef1877383016f98cee5e3b0da0acaefb7e436aca7
parentfa1138e1a0a2f666b2cd26818e280b6171e417ac

Randoms are passed by value now


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

src/lib.zig+1-1
...@@ -34,7 +34,7 @@ pub fn addSentinel(alloc: std.mem.Allocator, comptime T: type, input: []const T,...@@ -34,7 +34,7 @@ pub fn addSentinel(alloc: std.mem.Allocator, comptime T: type, input: []const T,
3434
35const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";35const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";
3636
37pub fn randomSlice(alloc: std.mem.Allocator, rand: *const std.rand.Random, comptime T: type, len: usize) ![]T {37pub fn randomSlice(alloc: std.mem.Allocator, rand: std.rand.Random, comptime T: type, len: usize) ![]T {
38 var buf = try alloc.alloc(T, len);38 var buf = try alloc.alloc(T, len);
39 var i: usize = 0;39 var i: usize = 0;
40 while (i < len) : (i += 1) {40 while (i < len) : (i += 1) {