### Summary .NET 8 supports Xoroshiro 256** off the shelf and added Shuffle. Switching to that implementation. ### Developer Notes * Removed many convenience methods that weren't used.
20 lines
485 B
C#
20 lines
485 B
C#
using Server.Random;
|
|
|
|
namespace Server.Commands;
|
|
|
|
public class ResetRng
|
|
{
|
|
public static void Initialize()
|
|
{
|
|
CommandSystem.Register("ResetRng", AccessLevel.Administrator, ResetRng_OnCommand);
|
|
}
|
|
|
|
[Usage("ResetRng")]
|
|
[Description(
|
|
"Resets the global RNG. Use with care! Do not reset often as this will affect the over-all distribution."
|
|
)]
|
|
private static void ResetRng_OnCommand(CommandEventArgs e)
|
|
{
|
|
BuiltInRng.Reset();
|
|
}
|
|
}
|