diff --git a/web-index/hashes/1-grams.txt.small.hash b/web-index/hashes/1-grams.txt.small.hash index c32a2dec..c840d115 100644 --- a/web-index/hashes/1-grams.txt.small.hash +++ b/web-index/hashes/1-grams.txt.small.hash @@ -1 +1 @@ -d6b8e768732a1cdbd988cd9746ec55e10879fc68c938f65322c5444d63884305 +b7006f6d425233137811f16eeb6ca668 diff --git a/web-index/hashes/2-grams.txt.small.hash b/web-index/hashes/2-grams.txt.small.hash index 8a7a742d..a73de048 100644 --- a/web-index/hashes/2-grams.txt.small.hash +++ b/web-index/hashes/2-grams.txt.small.hash @@ -1 +1 @@ -02d05ddd5933129ff92fa4855bde43284df8150d9c010183f19d42ee9d33dd9d +a48e86700b02c50651e8d4b09a73170c diff --git a/web-index/hashes/3-grams.txt.small.hash b/web-index/hashes/3-grams.txt.small.hash index 247a87b1..c2345434 100644 --- a/web-index/hashes/3-grams.txt.small.hash +++ b/web-index/hashes/3-grams.txt.small.hash @@ -1 +1 @@ -509c3930f7aa56c8b5dfd431d5dd8f202d7fb0f1ef668524122e3a9920affd19 +73310ad60a0d2d50d805901c481a5dbc diff --git a/web-index/verify.sh b/web-index/verify.sh index c340790f..5ce75de3 100755 --- a/web-index/verify.sh +++ b/web-index/verify.sh @@ -14,10 +14,10 @@ if [[ "$@" == *"--small"* ]]; then fi if [[ "$@" == *"--generate"* ]]; then - # generate hashes and store in hashses directory for all *grams.txt files + # generate hashes and store in hashes directory for all *grams.txt files for file in $(find ${eval_dir} -name "*grams.txt"); do echo "Generating hash for ${file}" - hash=$(sha256sum ${file} | cut -d ' ' -f 1) + hash=$(md5sum ${file} | cut -d ' ' -f 1) echo "Hash: ${hash}" echo "${hash}" > "${hashes_dir}/$(basename ${file})${suffix}.hash" done @@ -26,7 +26,7 @@ fi # verify hashes for all *grams.txt files for file in $(find ${eval_dir} -name "*grams.txt"); do - hash=$(sha256sum ${file} | cut -d ' ' -f 1) + hash=$(md5sum ${file} | cut -d ' ' -f 1) expected_hash=$(cat "${hashes_dir}/$(basename ${file})${suffix}.hash") if [[ "${hash}" != "${expected_hash}" ]]; then echo "Hash mismatch for ${file}" @@ -35,4 +35,4 @@ for file in $(find ${eval_dir} -name "*grams.txt"); do exit 1 fi done -echo $? +echo $? \ No newline at end of file