aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenSim.Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Common/OpenSim.Framework/Util.cs')
-rw-r--r--Common/OpenSim.Framework/Util.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Common/OpenSim.Framework/Util.cs b/Common/OpenSim.Framework/Util.cs
index 10e3fdf..8c34c9b 100644
--- a/Common/OpenSim.Framework/Util.cs
+++ b/Common/OpenSim.Framework/Util.cs
@@ -81,6 +81,14 @@ namespace OpenSim.Framework.Utilities
81 return sb.ToString(); 81 return sb.ToString();
82 } 82 }
83 83
84 public static string GetRandomCapsPath()
85 {
86 LLUUID caps = LLUUID.Random();
87 string capsPath = caps.ToStringHyphenated();
88 capsPath = capsPath.Remove(capsPath.Length - 4, 4);
89 return capsPath;
90 }
91
84 //public static int fast_distance2d(int x, int y) 92 //public static int fast_distance2d(int x, int y)
85 //{ 93 //{
86 // x = System.Math.Abs(x); 94 // x = System.Math.Abs(x);