BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

ksrandom - seed the krandom random number generator.

LIBRARY CALL

void ksrandom(int seed)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

The ksrandom function sets the seed (starting value) of the random number generation algorithm used by krandom.

ksrandom is not a POSIX function, but is implemented in most BSD libraries. If it is implemented for the current architecture in libc.a, then this is simply a macro to srandom, otherwise ksrandom is a macro to the Khoros portable version of srandom.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/klibm/src/klibm.c

SEE ALSO

klibm(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.