Browse Source

Rename RandSeed to RandFromSeed and use ref param

Renames `RandSeed` method to be more consistent with `Math::rand_from_seed`
Raul Santos 4 years ago
parent
commit
5330c83690
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

+ 2 - 2
modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs

@@ -128,9 +128,9 @@ namespace Godot
             return godot_icall_GD_randi_range(from, to);
         }
 
-        public static uint RandSeed(ulong seed, out ulong newSeed)
+        public static uint RandFromSeed(ref ulong seed)
         {
-            return godot_icall_GD_rand_seed(seed, out newSeed);
+            return godot_icall_GD_rand_seed(seed, out seed);
         }
 
         public static IEnumerable<int> Range(int end)