Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Carlier <frederik.carlier@quamotion.mobi>2017-03-16 02:26:13 +0300
committerMarek Safar <marek.safar@gmail.com>2017-03-16 11:09:50 +0300
commitb182c70602a380d13c93d55f8ea723267b6ae5f4 (patch)
tree2fa64f99d8a74fcd59ee829a7a47fe34f0dc295c /mcs/class/System.Drawing
parent588b9053496e716d3880169e9a233077e47b3179 (diff)
Use MD5.Create () instead of new MD5CryptoServiceProvider()
Diffstat (limited to 'mcs/class/System.Drawing')
-rw-r--r--mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs
index 178bddb250a..2d87ac21cd5 100644
--- a/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs
+++ b/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs
@@ -608,7 +608,7 @@ namespace MonoTests.System.Drawing {
}
}
- hash = new MD5CryptoServiceProvider().ComputeHash (pixels);
+ hash = MD5.Create ().ComputeHash (pixels);
return ByteArrayToString (hash);
}
public string RotateIndexedBmp (Bitmap src, RotateFlipType type)
@@ -658,7 +658,7 @@ namespace MonoTests.System.Drawing {
if (pixel_data == null)
return "--ERROR--";
- byte[] hash = new MD5CryptoServiceProvider().ComputeHash (pixel_data);
+ byte[] hash = MD5.Create ().ComputeHash (pixel_data);
return ByteArrayToString (hash);
}