Skip to content

Commit 0b338e4

Browse files
authored
update hash method so it doesn't fail on a fips enabled machine (#939)
1 parent 1f98d3c commit 0b338e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const transform = require("./transform");
1919
// Lazily instantiated when needed
2020
let defaultCacheDirectory = null;
2121

22-
let hashType = "md4";
23-
// use md5 hashing if md4 is not available
22+
let hashType = "sha256";
23+
// use md5 hashing if sha256 is not available
2424
try {
2525
crypto.createHash(hashType);
2626
} catch (err) {

0 commit comments

Comments
 (0)