Projet

Général

Profil

Révision 5fc58a68

Ajouté par Julien Enselme il y a plus de 10 ans

Switch from /dev/urandom to /dev/random

On FreeBSD urandom is just a link to random and it never blocks. Now even
on linux it is unlikely that random will block. More at:
http://en.wikipedia.org/wiki//dev/random

Voir les différences:

bin/scripts-utils.sh
36 36
    fi
37 37

  
38 38
    while echo "$site_password" | grep -Fq '/' ; do
39
        site_password=`dd if=/dev/urandom count=1 | uuencode -m - | head -n 2 | tail -n 1 | cut -c-$password_length`
39
        site_password=`dd if=/dev/random count=1 | uuencode -m - | head -n 2 | tail -n 1 | cut -c-$password_length`
40 40
    done
41 41

  
42 42
    echo $site_password

Formats disponibles : Unified diff