Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Correct incorrect advance in PCG with emulated int128
Correct incorrect implemetation of carry in PCG64 and PCG64DXSM when advancing more than 2**64 steps closes #20048
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Corrected ``advance`` in ``PCG64DSXM`` and ``PCG64`` | ||
---------------------------------------------------- | ||
Fixed a bug in the ``advance`` method of ``PCG64DSXM`` and ``PCG64``. The bug only | ||
affects results when the step was larger than :math:`2^{64}` on platforms | ||
that do not support 128-bit integers(e.g., Windows and 32-bit Linux). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters