From 5330c83690aefeeb9ed35b36e780234c81301a24 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 28 Jul 2021 15:23:22 +0200 Subject: Rename RandSeed to RandFromSeed and use ref param Renames `RandSeed` method to be more consistent with `Math::rand_from_seed` --- modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs index a6f7a80d64..71d0593916 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/GD.cs +++ b/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 Range(int end) -- cgit v1.2.3