diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rndl.awk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/rndl.awk b/bin/rndl.awk index 8359af90..f495a28c 100644 --- a/bin/rndl.awk +++ b/bin/rndl.awk @@ -8,7 +8,10 @@ BEGIN { # Seed the random number generator "rnds 2>/dev/null" | getline seed - srand(seed) + if (length(seed)) + srand(seed) + else + srand() } # Iterate over the lines, randomly assigning the first field of each one with a |