It's in The Trunk repository on source.squeak.org. If you have an
up-to-date Trunk image, then you're already using it. If not, you can get
the latest here:
http://build.squeak.org/job/SqueakTrunk/lastSuccessfulBuild/artifact/target/TrunkImage.zipPlease note that this code has not been released yet, and the PRNG
implementation has been changed since Kernel-bf.899.
Levente
On Tue, 26 May 2015, Lawson English wrote:
> Title says it all.
>
> Thanks
>
> Lawson
> o
>
> ________________________________________________________________________________________________________________________________________________________________________________________________________________
>
> On 10.02.2015, at 13:39, David T. Lewis <lewis at mail.msen.com> wrote:
> >
> > On Tue, Feb 10, 2015 at 02:39:19AM -0700, Lawson English wrote:
> >> This bit of code fails at numb := 1024:
> >>
> >> error: Cannot truncate this number
> >>
> >> numb := 1024.
> >> 1 to: numb do: [:n||test| test:=(2 raisedTo: n) -1. (test isPrime)
> >> ifTrue: [Transcript show: n; tab; show: test;cr]]
> >>
> >> #isProbablyPrime fails with the same number.
> >>
> >>
> >> numb := 1023.
> >> works for both.
> >>
> >
> > It looks like a problem in random number generation. It is failing in
> > LargePositiveInteger>>atRandom which somehow results in the random
> > generator producing a value of Float infinity.
> >
> > Dave
>
> Yep. Random>>nextInt: does not work for really large ints. Fixed in Kernel-bf.899.
>
> - Bert -
>
>
>