Page 1 of 1

Problem with Maths Functions

Posted: Wed Feb 08, 2006 3:30 am
by Gareth Owen
I have just installed the latest version of IA (5.1) and I am suddenly having problems with the Maths functions.

In particular.

Set Random Number Generator Seed = 46837722323
Set Variable DLLRESULT to
Set Random Number Generator Constants = 9999, 1000

Num1 = Generate Random Number (max value 10000)
Num2 = Generate Random Number (max value 10000)

This seems to ALWAYS return the same value.
Both Num1 and Num2 seem to always return 11000.
This was not the case in 5.0.


Bitwise And
CHECKNUM = 178956970 and 22000
In IA 5.0 this gave 160, as it should.

In IA 5.1 however it gives 178956970, which is incorrect. :(

Oh Dear, this means that all of our serial number validation code does not work, so nobody can install the software :cry:

Any Ideas?

Need help very soon on this as we are in the middle of a major release cycle.

Cheers

Posted: Wed Feb 08, 2006 4:54 am
by Gareth Owen
entirely true. it now seems that the random number generator gives different results depending on which computer it is run on.

It still does not work though :cry:

Posted: Wed Feb 08, 2006 8:03 am
by Gareth Owen
Ermm, As far as i am aware.

If you set the Random seed, then call Generate random number twice you should NOT get the same number twice, unless you are very unlucky. :cry:

If you have to reset the seed every time you want a new random, you may as well just hard code a random number :?

That is the standard windows API, the seed just gives you a starting point.

Posted: Wed Feb 08, 2006 9:10 am
by MichaelNesmith
Hi Gareth

I believe this might have been caused when Mathematics was widened to support 64 bit operations. I am escalating this and will get back to you as soon as possible.

Posted: Wed Feb 08, 2006 9:21 am
by Gareth Owen
Thanks, will wait with baited breath :P

Posted: Wed Feb 08, 2006 11:38 am
by sinan
Dear Gareth,

I apologize for this - the issue has been resolved and an update is now available to licensed users. Simply re-generate your product license and re-install it; let us know if you need more help.

Sincerely,
Sinan

Posted: Wed Feb 08, 2006 11:41 am
by Gareth Owen
Ta very much, will try it now. :D

Posted: Thu Feb 09, 2006 7:05 am
by Gareth Owen
:D That seems to have sorted it.

Thanks for the VERY :!: rapid response.

Thanks

Posted: Thu Feb 09, 2006 9:10 am
by CandiceJones
When you are pleased with our response speed, please help spread the word!
If you are dissatisfied with anything, please let us know!