diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-12-09 18:33:47 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-12-09 18:33:47 -0800 |
commit | 818ecb26f020678ce67e2d81e84bc3924d05d556 (patch) | |
tree | e97c7971b8fdf3902fd0ad66749084257afede96 /bench/sha1-compute.myr | |
parent | 9caea584295b183afde4d272c2c7127da0ff1dc7 (diff) | |
download | mc-818ecb26f020678ce67e2d81e84bc3924d05d556.tar.gz |
Fix benchmark code.
Diffstat (limited to 'bench/sha1-compute.myr')
-rw-r--r-- | bench/sha1-compute.myr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/sha1-compute.myr b/bench/sha1-compute.myr index 22e9a9b..e96aa65 100644 --- a/bench/sha1-compute.myr +++ b/bench/sha1-compute.myr @@ -1,4 +1,4 @@ -use cryptohash +use crypto use std const N = 20 @@ -12,9 +12,9 @@ const main = { buf[i] = b++ ;; for i = 0; i < N; i++ - cryptohash.sha1init(&st) - cryptohash.sha1add(&st, buf[:]) - cryptohash.sha1fin(&st) + crypto.sha1init(&st) + crypto.sha1add(&st, buf[:]) + crypto.sha1fin(&st) ;; } |