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 <gshe...@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 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev