NAME
kjb_seed_rand - Sets seed for kjb_rand.
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
(
kjb_int32 first_seed_value,
kjb_int32 second_seed_value
);
DESCRIPTION
This routine sets the seed for kjb_rand. See kjb_seed_rand_with_3_short for
an alternate interface. If neither of these functions are not used, then
kjb_rand is seeded with 0 at the first invocation, and it is not seeded
thereafter. However, an interface to this routine is exposed to the user
through the option "seed". Thus this routine is not normally used.
The first seed value is used in its entirety as the first part
of a 48 bit seed. The two LSB of the second seed value are used for the
remaining 16 bits.
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_with_tod
,
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