blob: 645d3a1e29c204c25e5765cb7237ff9948cb44f0 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <stddef.h>
#include "ssplain.h"
void chatting(char *s, ...)
{
va_list ap;
va_start(ap,s);
vfprintf(stderr, s, ap);
va_end(ap);
}
#ifdef SS_RAND
double drand48()
{
double d;
d = (double) random() / LONG_MAX;
return d;
}
long lrand48()
{
long l = random();
return l;
}
void srand48(long seed)
{
srand(seed);
}
#endif SS_RAND
|