Set reference to new rand() value in authorise()