1 #- beginning of included section from create-random-pw.config
2 gen_random_pw () { # Generate a random password
3 if [ -c /dev/urandom ]; then # ...using /dev/urandom when possible
4 tmp=$(dd if=/dev/urandom count=1 bs=8 2> /dev/null | md5sum | cut -b1-8)
5 else # ...or something else if need be.
6 # Last I was told, the Hurd had no /dev/urandom
7 # (Correct me if it has changed)
8 # Suggestions form something more random than $(date) are welcome
9 tmp=$(date | md5sum | cut -b1-8)
13 #- end of included section from create-random-pw.config