Skip to content

Commit ae19293

Browse files
authored
Merge pull request #134 from microsoft/benjaming/address-codeql
Mark CodeQL exception
2 parents 9fc5447 + bfff4e8 commit ae19293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/Common.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static Guid GenerateGuidFromName(string name)
3939
}
4040

4141
// Compute the Sha1 hash
42-
var sha1 = SHA1.Create();
42+
var sha1 = SHA1.Create(); // CodeQL [SM02196] False positive: this hash is not used for any sort of crytopgraphy
4343
byte[] hash = sha1.ComputeHash(bytes);
4444

4545
// Create a GUID out of the first 16 bytes of the hash (SHA-1 create a 20 byte hash)

0 commit comments

Comments
 (0)