summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-27 22:23:07 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-27 22:24:40 (EDT)
commitfd9be223b3a6959d7936cb2c8ed7855ec03d53c1 (patch)
treef911d38aa902c183a6f558719c75b97bdf889438
parentbf734679a7643e4cf54e192cb8a624c92fc2da64 (diff)
prokit: Seed the RNG
-rw-r--r--src/prokit.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/prokit.sh b/src/prokit.sh
index fab4990..9580cfa 100644
--- a/src/prokit.sh
+++ b/src/prokit.sh
@@ -63,6 +63,7 @@ use()
use locale
use cmd
use getopt
+use rand
main()
{
@@ -86,6 +87,8 @@ main()
shift
fi
+ srand $(expr ${$} + $(date '+%s'))
+
case "${cmd}" in
'help'|'version') ;;
*) check_uid || error 1 "$(get_msg 'uid_0_req')";;