Skip to content

Commit dea7ae9

Browse files
committed
Reduce memory usage in tests
1 parent 2319788 commit dea7ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/crypto/kangarootwelve.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ test "KT128 sequential and parallel produce same output with customization" {
14061406
var prng = std.Random.DefaultPrng.init(std.testing.random_seed);
14071407
const random = prng.random();
14081408

1409-
const input_size = 15 * 1024 * 1024; // 15MB
1409+
const input_size = 5 * 512 * 1024; // 2.5MB
14101410
const input = try allocator.alloc(u8, input_size);
14111411
defer allocator.free(input);
14121412

@@ -1500,7 +1500,7 @@ test "KT256 sequential and parallel produce same output with customization" {
15001500
var prng = std.Random.DefaultPrng.init(std.testing.random_seed);
15011501
const random = prng.random();
15021502

1503-
const input_size = 15 * 1024 * 1024; // 15MB
1503+
const input_size = 5 * 512 * 1024; // 2.5MB
15041504
const input = try allocator.alloc(u8, input_size);
15051505
defer allocator.free(input);
15061506

0 commit comments

Comments
 (0)