Skip to content

Commit

Permalink
Increase backwards branch quota to 20000
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon authored and jedisct1 committed Sep 29, 2020
1 parent d75af15 commit 0cd97ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/mem/timing_safe.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const testing = std.testing;

const TimingSafeEql = struct {
fn _x86_64(comptime T: type, comptime xlen: usize, a: []const T, b: []const T) u64 {
@setEvalBranchQuota(10000);
@setEvalBranchQuota(20000);

comptime var i: usize = 0;
comptime var buf = [_]u8{0} ** 1024;
Expand Down Expand Up @@ -133,6 +133,7 @@ pub fn timingSafeEql(comptime T: type, comptime len: usize, a: [len]T, b: [len]T
test "timingSafeEql" {
var a: [256]u8 = undefined;
var b: [256]u8 = undefined;

comptime var i: usize = 1;
inline while (i <= 256) : (i += 13) {
crypto.randomBytes(a[0..i]) catch unreachable;
Expand Down

0 comments on commit 0cd97ae

Please sign in to comment.