NAME
kjb_seed_rand_with_tod - Sets seed for kjb_rand using the current time
SYNOPSIS
#include "l/l_sys_rand.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
void kjb_seed_rand_with_tod(void);
DESCRIPTION
This routine sets the seed for kjb_rand with the current time. Normally one
wants to either control the random number seed, or use use the default value
of zero. If a semi-random seed is used, then reproducing the results will be
very hard! However, if the program has to do something different on each
invocation, then seeding with the time of day is one way to acomplish this.
NOTE
Since the user is normally exposed to the seeding options, this routine
is rarely used by external modules.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
set_random_options
,
kjb_rand
,
kjb_rand_st
,
kjb_seed_rand
,
kjb_seed_rand_with_3_short
,
get_rand_seed
,
kjb_rand_2
,
kjb_rand_2_st
,
kjb_seed_rand_2_with_tod
,
kjb_seed_rand_2