[ovs-dev] [PATCH 7/9] windefs: srandom() and random() for windows.
Gurucharan Shetty
shettyg at nicira.com
Fri Mar 14 15:18:44 UTC 2014
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 at nicira.com>
---
include/windows/windefs.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/windows/windefs.h b/include/windows/windefs.h
index 6f173b3..2497c4b 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 */
--
1.7.9.5
More information about the dev
mailing list