mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Yengine: use using...
This commit is contained in:
@@ -190,7 +190,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
// copy scripts or not.
|
||||
byte[] scbytes = System.Text.Encoding.UTF8.GetBytes(m_SourceCode);
|
||||
StringBuilder sb = new StringBuilder((256 + 5) / 6);
|
||||
ByteArrayToSixbitStr(sb, System.Security.Cryptography.SHA256.Create().ComputeHash(scbytes));
|
||||
using (System.Security.Cryptography.SHA256 sha = System.Security.Cryptography.SHA256.Create())
|
||||
ByteArrayToSixbitStr(sb, sha.ComputeHash(scbytes));
|
||||
m_ScriptObjCodeKey = sb.ToString();
|
||||
|
||||
// But source code can be just a sixbit string itself
|
||||
|
||||
Reference in New Issue
Block a user