summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-11-08 20:02:22 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-11-08 20:02:22 +0100
commit963499511cf0997a6c1adf7e758efbe8d72940d4 (patch)
treebd9991bde2cbbcaa542f89c6ce747c69164aec76 /tools
parentad7665e4b99d80845c013b54e32b5c356e6c6a84 (diff)
downloadmsitools-963499511cf0997a6c1adf7e758efbe8d72940d4.zip
msitools-963499511cf0997a6c1adf7e758efbe8d72940d4.tar.gz
msitools-963499511cf0997a6c1adf7e758efbe8d72940d4.tar.xz
wixl: use sha1 instead of md5 by default
Diffstat (limited to 'tools')
-rw-r--r--tools/wixl/util.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala
index a3033cb..f8dd0da 100644
--- a/tools/wixl/util.vala
+++ b/tools/wixl/util.vala
@@ -88,7 +88,7 @@ namespace Wixl {
i += 1;
}
var data = string.joinv ("|", args);
- var hash = Checksum.compute_for_string (ChecksumType.MD5, data);
+ var hash = Checksum.compute_for_string (ChecksumType.SHA1, data);
var str = prefix + hash[0:32].up ();
return str;
@@ -99,7 +99,7 @@ namespace Wixl {
for (var i = 0; i < 8; i++)
data[i] = Random.next_int ();
- var hash = Checksum.compute_for_data (ChecksumType.MD5, (uint8[])data);
+ var hash = Checksum.compute_for_data (ChecksumType.SHA1, (uint8[])data);
return prefix + hash[0:32].up ();
}