Problem with Maths Functions

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

Problem with Maths Functions

Postby Gareth Owen » Wed Feb 08, 2006 3:30 am

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

Postby Gareth Owen » Wed Feb 08, 2006 4:54 am

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

Postby Gareth Owen » Wed Feb 08, 2006 8:03 am

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:

Postby MichaelNesmith » Wed Feb 08, 2006 9:10 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Wed Feb 08, 2006 9:21 am

Thanks, will wait with baited breath :P

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Feb 08, 2006 11:38 am

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

Postby Gareth Owen » Wed Feb 08, 2006 11:41 am

Ta very much, will try it now. :D

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Thu Feb 09, 2006 7:05 am

: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:

Postby CandiceJones » Thu Feb 09, 2006 9:10 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 194 guests