Subversion Repositories HelenOS-historic

Rev

Rev 1301 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1301 Rev 1472
Line 33... Line 33...
33
#include <malloc.h>
33
#include <malloc.h>
34
 
34
 
35
#define abort() _exit(1)
35
#define abort() _exit(1)
36
#define exit(status)    _exit((status))
36
#define exit(status)    _exit((status))
37
 
37
 
-
 
38
#define RAND_MAX 714025
-
 
39
 
-
 
40
extern long int random(void);
-
 
41
extern void srandom(unsigned int seed);
-
 
42
 
-
 
43
static inline int rand(void)
-
 
44
{
-
 
45
    return random();
-
 
46
}
-
 
47
static inline void srand(unsigned int seed)
-
 
48
{
-
 
49
    srandom(seed);
-
 
50
}
-
 
51
 
-
 
52
 
38
#endif
53
#endif