Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Use /dev/urandom, not /dev/random
Browse files Browse the repository at this point in the history
Because /dev/random blocks which is super irritating (tokens take >30
seconds to generate on my machine)

Read this: http://www.2uo.de/myths-about-urandom/

If anyone can authoratitively disagree, please feel free to comment and
close this PR :)
  • Loading branch information
Paul M Furley committed Apr 9, 2014
1 parent dd1bed0 commit b4eafed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Generate a random token
#

head -c 500 /dev/random | shasum -a 512
head -c 500 /dev/urandom | shasum -a 512

0 comments on commit b4eafed

Please sign in to comment.