diff --git a/AssemblyData/AssemblyData.csproj b/AssemblyData/AssemblyData.csproj index 7cfd4201..0338f065 100644 --- a/AssemblyData/AssemblyData.csproj +++ b/AssemblyData/AssemblyData.csproj @@ -51,12 +51,14 @@ + + diff --git a/AssemblyData/Utils.cs b/AssemblyData/Utils.cs index 5d7233b7..70999916 100644 --- a/AssemblyData/Utils.cs +++ b/AssemblyData/Utils.cs @@ -69,6 +69,10 @@ namespace AssemblyData { static class Utils { static Random random = new Random(); + public static uint getRandomUint() { + return (uint)(random.NextDouble() * uint.MaxValue); + } + public static Type getDelegateType(Type returnType, Type[] args) { Type[] types; if (returnType == typeof(void)) { diff --git a/AssemblyData/methodsrewriter/CodeGenerator.cs b/AssemblyData/methodsrewriter/CodeGenerator.cs index 8dab19c1..0aee4c2b 100644 --- a/AssemblyData/methodsrewriter/CodeGenerator.cs +++ b/AssemblyData/methodsrewriter/CodeGenerator.cs @@ -56,6 +56,7 @@ namespace AssemblyData.methodsrewriter { } IMethodsRewriter methodsRewriter; + string methodName; IList allInstructions; IList allExceptionHandlers; ILGenerator ilg; @@ -69,13 +70,15 @@ namespace AssemblyData.methodsrewriter { List locals; List