c1f21925dfab — Michael Johnson 1 year, 10 months ago
Use Rotation extension method in PCG32
1 files changed, 1 insertions(+), 1 deletions(-)

M src/Pcg32/Pcg32.cs
M src/Pcg32/Pcg32.cs +1 -1
@@ 77,7 77,7 @@ public sealed class Pcg32 : IRng
         var rotation = unchecked((Int32)(state >> rotate));
         var xs = unchecked((UInt32)(((state >> xShift) ^ state) >> spare));
         // Rotate Right
-        return (xs >> rotation) | (xs << (32 - rotation));
+        return xs.RotateRight(rotation);
     }
 
     /// <inheritdoc />