Rename RandSeed to RandFromSeed and use ref param

Renames `RandSeed` method to be more consistent with `Math::rand_from_seed`
This commit is contained in:
Raul Santos 2021-07-28 15:23:22 +02:00
parent dcf2a62b05
commit 5330c83690

View File

@ -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)