Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)
Created: 03/28/2016
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win All
Vote Count: 1
Problem Description:
Doc of RandRange says "If the numbers are not in the range -2,147,483,648 - 2,147,483,647, ColdFusion generates an error." but testing such edge case returns unexpected result.
Steps to Reproduce:
A: #randrange(-2147483648, 2147483647) #
B: #randrange(0, 2147483647)#
Actual Result:
A: -2147483648
B: (some random negative number)
Expected Result:
A: some random number in between MIN_INT and MAX_INT
B: some random number between 0 and MAX_INT
Any Workarounds:
Ridiculously convert UUID from createUUID() into binary and then into a number?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4132630
External Customer Info:
External Company:
External Customer Name: Henry Ho
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: