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
November 30, 2020 at 12:26 pm
#6405
Participant
It seems I misunderstood the b64_md5 algorithm. What I really wanted was this:
PennController("consent",
newVar("ParticipantID", b64_md5((Date.now() + Math.random()).toString()))
.global()
...