js-d3-flame-graph/002-webpack-update-hash-fn.vendor.patch
Andreas Gerstmayr 32e908abcb change webpack hash function to sha256
* remove unused cryptographic implementations
* update tooling

Resolves: rhbz#1975437
2021-06-30 15:28:06 +02:00

14 lines
600 B
Diff

diff --git a/node_modules/webpack/lib/optimize/ConcatenatedModule.js b/node_modules/webpack/lib/optimize/ConcatenatedModule.js
index 03711c4..df4d216 100644
--- a/node_modules/webpack/lib/optimize/ConcatenatedModule.js
+++ b/node_modules/webpack/lib/optimize/ConcatenatedModule.js
@@ -560,7 +560,7 @@ class ConcatenatedModule extends Module {
orderedConcatenationListIdentifiers += " ";
}
}
- const hash = createHash("md4");
+ const hash = createHash("sha256");
hash.update(orderedConcatenationListIdentifiers);
return this.rootModule.identifier() + " " + hash.digest("hex");
}