mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-16 15:39:29 +00:00
Use Math.Abs on guid hashcode to ensure > 0
This commit is contained in:
@@ -11,7 +11,7 @@ namespace MonoGame.Extended.Particles
|
||||
{
|
||||
public unsafe class ParticleEmitter : IDisposable
|
||||
{
|
||||
private readonly FastRandom _random = new FastRandom(Guid.NewGuid().GetHashCode());
|
||||
private readonly FastRandom _random = new FastRandom(Math.Abs(Guid.NewGuid().GetHashCode()));
|
||||
private float _totalSeconds;
|
||||
|
||||
[JsonConstructor]
|
||||
|
||||
Reference in New Issue
Block a user