This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private str getNonce(RecId _recId) | |
{ | |
str nonce; | |
System.Random random = new System.Random(); | |
System.Int32 randomNumber = random.Next(); | |
if(_recId > 0) | |
{ | |
nonce = int642str(_recId); | |
} | |
else | |
{ | |
nonce = randomNumber.ToString(); | |
} | |
nonce = subStr(nonce, 1, 16); | |
return nonce; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment