ASSERTIONS

voidassert(CONDITION);
voidKASSERT(CONDITION);
voidKDASSERT(CONDITION);
These macros cause kernel panic(9) if the given condition evaluates to
false. assert() tests are always compiled in. KASSERT() tests are only
included if the kernel has DIAGNOSTIC enabled. KDASSERT() tests are only
included if the kernel has DEBUG enabled.

RANDOM NUMBER GENERATION

u_longrandom(void);
voidsrandom(u_long seed);
The random() function returns a random number. The srandom() function in-
itializes the random seed. random() will by default produce a sequence of
numbers that can be duplicated by calling srandom() with `1' as the seed.
The random() function is discouraged in favor of arc4random(9).

MISCELLANEOUS

intgetsn(char *cp, int size);
The getsn() function reads user input from the console and returns on
newline. The result is written into cp, which is assumed to be size bytes
long.