ModernUO/Projects/UOContent/Commands/ResetRng.cs
Kamron Batman dba3ec2db5
fix: Use built-in RNG (#1599)
### 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.
2023-11-17 17:45:18 -08:00

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();
}
}