I have the following function:
<cfparam name="password" default="">
<cffunction name="passwordGen" returntype="string">
<cfloop index="loopCount" from="0" to="4">
<cfset passwordGen = #password# & #toString(RandRange(0,9))#>
</cfloop>
<cfreturn password>
</cffunction>
Currently it returns something along the lines of cfregister2ecfm1360396430$funcPASSWORDGEN@16c3ef9. What am I doing wrong?
Many thanks in advance.
Edit: I got it.