aboutsummaryrefslogtreecommitdiff
path: root/man/man1/rnds.1
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-03 17:57:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-03 18:03:38 +1200
commit8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c (patch)
tree9323cf3529ba1c809beed46256889b8ee88c6d0d /man/man1/rnds.1
parentAllow numerator and denominator in myb(1) (diff)
downloaddotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.tar.gz
dotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.zip
Add rnds(1)
Low-quality random seed attempt.
Diffstat (limited to 'man/man1/rnds.1')
-rw-r--r--man/man1/rnds.121
1 files changed, 21 insertions, 0 deletions
diff --git a/man/man1/rnds.1 b/man/man1/rnds.1
new file mode 100644
index 00000000..1e76d9a1
--- /dev/null
+++ b/man/man1/rnds.1
@@ -0,0 +1,21 @@
+.TH RNDS 1 "August 2016" "Manual page for rnds"
+.SH NAME
+.B rnds
+\- try to get a random seed
+.SH SYNOPSIS
+.B rnds
+.B rnds
+1024
+.SH DESCRIPTION
+.B rnds
+uses POSIX tools to try and find a random number device on the system and emits
+the first field of a cksum(1) based on it as a low-quality random numeric seed.
+The only optional argument allows specifying the number of random bytes to
+read, defaulting to 32. This is intended as a low-quality seed for rndi(1).
+.P
+/dev/arandom is tried first, then /dev/urandom, then /dev/random, before the
+script gives up and emits nothing.
+.SH SEE ALSO
+rndi(1), rnda(1), rndf(1), rndl(1), rndn(6)
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>