PKUOS - Pintos
Pintos source browser for PKU Operating System course
random.h
Go to the documentation of this file.
1#ifndef __LIB_RANDOM_H
2#define __LIB_RANDOM_H
3
4#include <stddef.h>
5
6void random_init (unsigned seed);
7void random_bytes (void *, size_t);
8unsigned long random_ulong (void);
9
10#endif /**< lib/random.h */
unsigned long random_ulong(void)
lib/random.h
Definition: random.c:78
void random_bytes(void *, size_t)
Writes SIZE random bytes into BUF.
Definition: random.c:54
void random_init(unsigned seed)
Initializes or reinitializes the PRNG with the given SEED.
Definition: random.c:34