aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/UserProfile.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Framework/UserProfile.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim.Framework/UserProfile.cs b/OpenSim.Framework/UserProfile.cs
index eef6be1..0f21fb3 100644
--- a/OpenSim.Framework/UserProfile.cs
+++ b/OpenSim.Framework/UserProfile.cs
@@ -39,15 +39,16 @@ namespace OpenSim.Framework.User
39 39
40 public void InitSessionData() 40 public void InitSessionData()
41 { 41 {
42 RNGCryptoServiceProvider rand = new RNGCryptoServiceProvider();
42 43
43 System.Security.Cryptography.Rfc2898DeriveBytes b = new Rfc2898DeriveBytes(MD5passwd, 128); 44 byte[] randDataS = new byte[16];
45 byte[] randDataSS = new byte[16];
44 46
45 RNGCryptoServiceProvider rand = new RNGCryptoServiceProvider(); 47 rand.GetBytes(randDataS);
48 rand.GetBytes(randDataSS);
46 49
47 CurrentSessionID = new LLUUID(); 50 CurrentSecureSessionID = new LLUUID(randDataSS,0);
48 CurrentSecureSessionID = new LLUUID(); 51 CurrentSessionID = new LLUUID(randDataS,0);
49 rand.GetBytes(CurrentSecureSessionID.Data);
50 rand.GetBytes(CurrentSessionID.Data);
51 } 52 }
52 53
53 public void AddSimCircuit(uint circuitCode, LLUUID regionUUID) 54 public void AddSimCircuit(uint circuitCode, LLUUID regionUUID)