[Cuis-dev] Bug in Integer>>#raisedTo:modulo:

Luciano Notarfrancesco luchiano at gmail.com
Mon Jun 5 09:42:42 PDT 2023


The following:
    5445648384 raisedTo: 3 modulo: 1 << 34
Returns 0, which is right. But
    5445648384 raisedTo: 4 modulo: 1 << 34
Returns different numbers every time I call it (it should return 0).
It’s very weird… I don’t see where the randomness is coming from, perhaps
from LargeIntegerPlugin?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230605/a4091c71/attachment.htm>


More information about the Cuis-dev mailing list