From bbaf134dcfe307ddb2ca660209370a69c3e5697f Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Fri, 14 Mar 2014 07:32:08 -0700 Subject: [PATCH] windefs: srandom() and random() for windows. Windows does not have a srandom() and random(). But it does have a srand() and rand(). We use these functions in sflow code. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- include/windows/windefs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/windows/windefs.h b/include/windows/windefs.h index 6f173b38d..2497c4b74 100644 --- a/include/windows/windefs.h +++ b/include/windows/windefs.h @@ -39,4 +39,7 @@ typedef int pid_t; char *strsep(char **stringp, const char *delim); +#define srandom srand +#define random rand + #endif /* windefs.h */ -- 2.20.1