Title:
Calling Randomize() with the SHA1PRNG does not create "repeatable number patterns".
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Robert Dong / Robert Dong (Robert Dong)
Created: 07/21/2014
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 2
Problem Description:
Calling Randomize() with the SHA1PRNG does not create "repeatable number patterns" with the random number functions as the documentation states it should. i.e. If I give Randomize() the same seed, I would expect the same number pattern to be returned from calls to Rand().
This is broken in CF10. When tested in CF7 it worked fine.
Steps to Reproduce:
The example in the Randomize() documentation doesn't work as expected: https://wikidocs.adobe.com/wiki/display/coldfusionen/Randomize
Actual Result:
In the example, when you keep providing the same seed to it, it keeps returning different random numbers in CF10.
Expected Result:
In the example, (as in CF7) when you keep providing the same seed to it, it should return the same random numbers on each invocation.
Any Workarounds:
The Randomize() function works as expected when not using the SHA1PRNG.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3792283
External Customer Info:
External Company:
External Customer Name: CorporateRewards
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows Server 2008 R2 64-bit
ColdFusion 10,0,13,287689 Standard
Attachments:
Comments: