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,
3434
3535const 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 {
3838 var buf = try alloc.alloc(T, len);
3939 var i: usize = 0;
4040 while (i < len) : (i += 1) {