Reply To: Trying to set a unique participant ID/code for Amazon Mechanical Turk payment

PennController for IBEX Forums Support Trying to set a unique participant ID/code for Amazon Mechanical Turk payment Reply To: Trying to set a unique participant ID/code for Amazon Mechanical Turk payment

#6407
Jeremy
Keymaster

Glad you found a solution!

For reference, b64_md5 is a function defined as part of Ibex, it is not a standard javascript function. It expects a string passed as its argument (Date.now() + Math.random() is a number, which is why it needs to be converted into a string with .toString()) and outputs an encoded string uniquely corresponding to the input string

Jeremy