diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-03-14 07:32:08 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-03-17 14:20:49 -0700 |
commit | bbaf134dcfe307ddb2ca660209370a69c3e5697f (patch) | |
tree | 8b9603be7954d6085d8cc0eacdd3b59f7f83775a /include/windows | |
parent | f062911fe35374744a8753700a6fb5776bc3ef92 (diff) | |
download | openvswitch-bbaf134dcfe307ddb2ca660209370a69c3e5697f.tar.gz |
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 <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows')
-rw-r--r-- | include/windows/windefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |