Problem with Maths Functions

Got a problem you cannot solve? Try here.
Post Reply
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Problem with Maths Functions

Post 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
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Post 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:
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Post by Gareth Owen »

Thanks, will wait with baited breath :P
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post 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
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Post by Gareth Owen »

Ta very much, will try it now. :D
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Post by Gareth Owen »

:D That seems to have sorted it.

Thanks for the VERY :!: rapid response.

Thanks
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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!
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply