Created
June 29, 2018 12:33
-
-
Save skenderbeu/a6a555c40babd77421fd8c1ceedd7ada to your computer and use it in GitHub Desktop.
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