try to make mono happy

LSLKeyTest
UbitUmarov 2016-08-22 08:35:39 +01:00
parent 9953dad3a9
commit a2c80b20d7
1 changed files with 3 additions and 3 deletions

View File

@ -705,9 +705,9 @@ namespace OpenSim.Framework
private static byte[] ComputeSHA1Hash(byte[] src)
{
SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider();
byte[] ret = SHA1.ComputeHash(src);
SHA1.Dispose();
byte[] ret;
using(SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider())
ret = SHA1.ComputeHash(src);
return ret;
}