Skip to content

Commit

Permalink
Fix CS0675 Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Dec 11, 2023
1 parent adba001 commit 4574b0f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions RDMSharpTests/RDM/SerializeAndDeserializeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,9 @@ long LongRandom(Random rand)
}
ulong ULongRandom(Random rand)
{
ulong result = (uint)rand.Next((int)(int.MinValue >> 32), (int)(int.MaxValue >> 32));
result = (result << 32);
#pragma warning disable IDE0054 // Verbundzuweisung verwenden
result = result | (ulong)rand.Next((int)int.MinValue, (int)int.MaxValue);
#pragma warning restore IDE0054 // Verbundzuweisung verwenden
return result;
uint result1 = (uint)rand.Next(int.MinValue, int.MaxValue);
uint result2 = (uint)rand.Next(int.MinValue, int.MaxValue);
return (result1 << 32) + result2;
}
}
}

0 comments on commit 4574b0f

Please sign in to comment.