Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created December 8, 2013 19:07
Show Gist options
  • Save BitPuffin/7862385 to your computer and use it in GitHub Desktop.
Save BitPuffin/7862385 to your computer and use it in GitHub Desktop.
proc genRandomSalt(len: int): string =
randomize()
result = ""
for i in 0..<len:
result = char(random())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment