OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RAND_MAX
(Results
1 - 8
of
8
) sorted by relevancy
/src/lib/libc/stdlib/
rand.c
50
return (int)((next = next * 1103515245 + 12345) % ((u_long)
RAND_MAX
+ 1));
rand_r.c
50
return ((*seed = *seed * 1103515245 + 12345) &
RAND_MAX
);
/src/games/hangman/
getword.c
56
pos = (double) rand() / (
RAND_MAX
+ 1.0) * (double) Dict_size;
/src/include/
stdlib.h
89
#define
RAND_MAX
0x7fffffff
/src/bin/ed/
cbc.c
94
#define RAND_DIV (((unsigned)
RAND_MAX
+ 1) >> 8)
/src/sbin/newfs_lfs/
newfs.c
139
off = (((double)rand()) * (btodb(len))) / ((off_t)
RAND_MAX
+ 1);
/src/usr.sbin/route6d/
route6d.c
3118
interval = (int)(timer + timer * RIPRANDDEV * (r /
RAND_MAX
- 0.5));
/src/lib/libc/time/
zic.c
1280
the typical case where
RAND_MAX
is one less than a power of two.
1283
uint_fast64_t
rand_max
=
RAND_MAX
,
local in function:get_rand_u64
1284
nrand =
rand_max
< UINT_FAST64_MAX ?
rand_max
+ 1 : 0,
1296
rmax1 = nrand * rmax1 +
rand_max
;
Completed in 39 milliseconds
Indexes created Fri Oct 17 23:09:53 GMT 2025