summaryrefslogtreecommitdiff
path: root/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'poll.c')
-rw-r--r--poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.c b/poll.c
index 744c7141..3ac427ac 100644
--- a/poll.c
+++ b/poll.c
@@ -183,7 +183,7 @@ poll_dispatch(struct event_base *base, struct timeval *tv)
if (res == 0 || nfds == 0)
return (0);
- i = random() % nfds;
+ i = evutil_weakrand_range_(&base->weakrand_seed, nfds);
for (j = 0; j < nfds; j++) {
int what;
if (++i == nfds)