aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-04-04 15:55:26 -0700
committerThomas White <taw@physics.org>2015-04-20 12:55:36 +0200
commit2868423d46b61118eee93187d3f0046a3e33fb62 (patch)
treef0dbbef88d8cb795c2d92e14c9ccc1137341beb9
parent3c1f9603ff5078db607597e23d3c8113f2d06e56 (diff)
partial_sim: Update --help and manual
-rw-r--r--doc/man/partial_sim.14
-rw-r--r--src/partial_sim.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/man/partial_sim.1 b/doc/man/partial_sim.1
index 86ef0701..e11c75e7 100644
--- a/doc/man/partial_sim.1
+++ b/doc/man/partial_sim.1
@@ -144,6 +144,10 @@ Set the radius of the scattering density surrounding each reciprocal lattice poi
.PD
Set the central photon energy, in eV, for the incident beam. The default is \fB--photon-energy=9000\fR, i.e. 9 keV X-rays.
+.PD 0
+.IP \fB--really-random\fR
+.PD
+Seed the random number generator using the kernel random number generator (/dev/urandom). This means that truly random numbers for the orientation and crystal size, instead of the same sequence being used for each new run.
.SH AUTHOR
This page was written by Thomas White.
diff --git a/src/partial_sim.c b/src/partial_sim.c
index c0d9aaaa..18689565 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -241,6 +241,7 @@ static void show_help(const char *s)
" --profile-radius Reciprocal space reflection profile radius in m^-1.\n"
" Default 0.001e9 m^-1\n"
" --photon-energy Photon energy in eV. Default 9000.\n"
+" --really-random Be non-deterministic.\n"
"\n"
);
}