missed randomString generation in generateNonce()