blob: 131b0d3948fb8ce07fd21a833ac143092b5acce8 (
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
|
#define _ARC4_LOCK() ;
#define _ARC4_UNLOCK() ;
static inline void
_getentropy_fail(void)
{
_exit(1);
}
static inline void
_rs_forkdetect(void)
{
}
int arc4random_alloc(void **rsp, size_t rsp_size, void **rsxp, size_t rsxp_size);
static inline int
_rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
{
return arc4random_alloc((void **)rsp, sizeof(**rsp), (void **)rsxp, sizeof(**rsxp));
}
void arc4random_close(void)
{
rs = NULL;
rsx = NULL;
}
|