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

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon Jun 5 09:53:04 PDT 2023


Hi Luciano,
it works well in Squeak, so I doubt it's the plugin.
Which OS/hardware/VM flavour?
Did you try step by step or is Cuis using the Montgomery primitive?

Nicolas

Le lun. 5 juin 2023 à 18:43, Luciano Notarfrancesco via Cuis-dev <
cuis-dev at lists.cuis.st> a écrit :

> 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?
>
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230605/2fdd39cb/attachment.htm>


More information about the Cuis-dev mailing list