shithub: mc

Download patch

ref: 818ecb26f020678ce67e2d81e84bc3924d05d556
parent: 9caea584295b183afde4d272c2c7127da0ff1dc7
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 9 13:33:47 EST 2016

Fix benchmark code.

--- a/bench/bld.sub
+++ b/bench/bld.sub
@@ -12,7 +12,7 @@
 	sha1-compute.myr
 	lib ../lib/std:std
 	lib ../lib/sys:sys
-	lib ../lib/cryptohash:cryptohash
+	lib ../lib/crypto:crypto
 ;;
 bin bigfactorial {noinst,tag=bench} =
 	bigfactorial.myr
--- 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 @@
 		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)
 	;;
 }