help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Limits of Random changed due the mersenne twister


From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] Limits of Random changed due the mersenne twister
Date: Tue, 19 Jul 2011 13:22:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11

Hi all,

I have noticed a regression with master in one of my codes, I try to generate
a random number like:

        (Random between: 100000000000 and: 999999999999) asString


It is working with 3.2, it fails with a primitiveError in master. Is this
something easy to fix?



Log:
Object: Random new: 625 "<0x403de1d0>" error: primitive operation failed
SystemExceptions.PrimitiveFailed(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.PrimitiveFailed class(Exception class)>>signal
(ExcHandling.st:151)
Random(Object)>>primitiveFailed (Object.st:1349)
Random>>nextLimit: (Random.st:141)
Random>>between:and: (Random.st:124)
Random class>>between:and: (Random.st:85)
TOPDBPostgres class(TOPDB class)>>generateId (TOPDB.st:62)
TOPDBPostgres class(TOPDB class)>>newId (TOPDB.st:103)
[] in AddTopUp>>topUp: (AddTopUp.st:36)
BlockClosure>>on:do: (BlkClosure.st:193)
AddTopUp>>topUp: (AddTopUp.st:39)
[] in UndefinedObject>>executeStatements (AddTopUp.st:76)
BlockClosure>>ensure: (BlkClosure.st:269)
UndefinedObject>>executeStatements (AddTopUp.st:73)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]