Cryptography Reference
In-Depth Information
B.11 Generation of Pseudorandom Numbers
LINT
randBBS (const LINT& rmin,
const LINT& rmax);
return a
LINT
random number
r
with
rmin
≤
r
≤
rmax
LINT
randBBS (int l);
return a
LINT
random number of
length
l
bits
LINT
randl (const LINT& rmin,
const LINT& rmax);
return a
LINT
random number
r
with
rmin
≤
r
≤
rmax
LINT
randl (const int l);
return a
LINT
random number of
length
l
bits
int
seedBBS (const LINT& seed);
initialization
of
BBS
random
number
generator
with
initial
value
seed
void
seedl (const LINT& seed);
initialization of the 64-bit ran-
dom number generator based on
linear
congruences
with
initial
value
seed
B.12 Miscellaneous Functions
LINT_ERRORS
Get_Warning_Status (void);
query error status of a
LINT
object
static void
Set_LINT_Error_Handler
(void (*)(LINT_ERRORS err,
const char*, int, int));
activation of a user routine for
handling errors with
LINT
op-
erations. The registered routine
replaces the
LINT
standard er-
ror handler
panic()
; deactivation
of registration of user routine
and simultaneous reactivation of
use routine
panic()
managed by
the call
Set_LINT_Error_Handler
(NULL);