Software /
code /
prosody
Comparison
util-src/crand.c @ 7189:72839cafdf36
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Feb 2016 22:56:05 +0100 |
parent | 7187:3d2c2f0809ee |
child | 7439:4cccaa33b0a1 |
comparison
equal
deleted
inserted
replaced
7187:3d2c2f0809ee | 7189:72839cafdf36 |
---|---|
21 | 21 |
22 /* | 22 /* |
23 * TODO: Decide on fixed size or dynamically allocated buffer | 23 * TODO: Decide on fixed size or dynamically allocated buffer |
24 */ | 24 */ |
25 #if 1 | 25 #if 1 |
26 #include <malloc.h> | 26 #include <stdlib.h> |
27 #else | 27 #else |
28 #define BUFLEN 256 | 28 #define BUFLEN 256 |
29 #endif | 29 #endif |
30 | 30 |
31 #if defined(WITH_GETRANDOM) | 31 #if defined(WITH_GETRANDOM) |