From: Gurucharan Shetty Date: Fri, 14 Mar 2014 14:32:08 +0000 (-0700) Subject: windefs: srandom() and random() for windows. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~93 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bbaf134dcfe307ddb2ca660209370a69c3e5697f;p=sliver-openvswitch.git 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 --- 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 */