fix input seed

This commit is contained in:
Mia-admin 2022-01-17 18:22:44 -05:00
parent f7ca8a4cb2
commit 339a95dc70
No known key found for this signature in database
GPG Key ID: 71C6B366DD22D9B5
1 changed files with 2 additions and 1 deletions

3
ran
View File

@ -28,8 +28,9 @@ mseed() {
mseed
[ "$1" ] && {
seed="$1" # allow a seed to be set via $1
mseed="$(mseed)"
[ -c /dev/urandom ] && {
seed=$((seed*$(mseed))) # if we have access to hardware randomness use it.
seed=$((seed*mseed)) # if we have access to hardware randomness use it.
}
}
# $seed should now contain a number