~donmcc/lrnd

lrnd/lrnd.3 -rw-r--r-- 561 bytes
fd8d136bDon McCaughey Created initial project skeleton. 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.Dd May 26, 2020
.Dt LRND 3
.Os
.Sh NAME
.Nm lrnd ,
.Nm lrnd_stdlib_rand ,
.Nm lrnd_next_value()
.Nd pluggable random number generation functions.
.Sh SYNOPSIS
.In lrnd.h
.Ft bool
.Fn lrnd_next_value "struct lrnd *lrnd" "uint32_t *value_out"
.Sh DESCRIPTION
.Fn lrnd_next_value
generates the next random value from the given generator.
.Sh RETURN VALUES
.Fn lrnd_next_value
returns
.Dv true
on sucess and places the next value in the location pointed to by
.Fa value_out .
On failure, the function returns
.Dv false
and sets
.Va errno .
.Sh SEE ALSO
.Xr rand 3