| author | |
| committer | |
| log | db181b173f6debc2dbb1e68342ff46a4299c19a9 |
| tree | 836853255b809ec1bb284da0efca8f104c6f6bfe |
| parent | cfd5b81850d0234a5011c98f840d93bed47210c1 |
| signature |
* sync function arguments name with other same functions3 files changed, 6 insertions(+), 6 deletions(-)
lib/std/crypto/benchmark.zig+1-1| ... | @@ -1,4 +1,4 @@ | ... | @@ -1,4 +1,4 @@ |
| 1 | // zig run benchmark.zig --release-fast --zig-lib-dir .. | 1 | // zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig |
| 2 | 2 | ||
| 3 | const std = @import("../std.zig"); | 3 | const std = @import("../std.zig"); |
| 4 | const builtin = std.builtin; | 4 | const builtin = std.builtin; |
lib/std/crypto/blake3.zig+4-4| ... | @@ -398,10 +398,10 @@ pub const Blake3 = struct { | ... | @@ -398,10 +398,10 @@ pub const Blake3 = struct { |
| 398 | return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL); | 398 | return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL); |
| 399 | } | 399 | } |
| 400 | 400 | ||
| 401 | pub fn hash(in: []const u8, out: []u8, options: Options) void { | 401 | pub fn hash(b: []const u8, out: []u8, options: Options) void { |
| 402 | var hasher = Blake3.init(options); | 402 | var d = Blake3.init(options); |
| 403 | hasher.update(in); | 403 | d.update(b); |
| 404 | hasher.final(out); | 404 | d.final(out); |
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | fn pushCv(self: *Blake3, cv: [8]u32) void { | 407 | fn pushCv(self: *Blake3, cv: [8]u32) void { |
lib/std/hash/benchmark.zig+1-1| ... | @@ -1,4 +1,4 @@ | ... | @@ -1,4 +1,4 @@ |
| 1 | // zig run benchmark.zig --release-fast --zig-lib-dir .. | 1 | // zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig |
| 2 | 2 | ||
| 3 | const builtin = std.builtin; | 3 | const builtin = std.builtin; |
| 4 | const std = @import("std"); | 4 | const std = @import("std"); |