diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-12-30 14:29:56 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-12-30 14:29:56 -0500 |
commit | 165d30e31a167215c03a9104423f2767c9ff9c9a (patch) | |
tree | 8fcb5f002fe9a1e15f65b7f14539bc8db25e9ad6 /evutil.c | |
parent | 885b42734c2360e95b9acb7a5b202262f24b7626 (diff) | |
download | libevent-165d30e31a167215c03a9104423f2767c9ff9c9a.tar.gz |
Fix compilation of rate-limiting code on win32.
Diffstat (limited to 'evutil.c')
-rw-r--r-- | evutil.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1759,3 +1759,14 @@ evutil_getenv(const char *varname) return getenv(varname); } + +long +_evutil_weakrand(void) +{ +#ifdef WIN32 + return rand(); +#else + return random(); +#endif +} + |