ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo2l.c
(Generate patch)

Comparing ray/src/hd/rholo2l.c (file contents):
Revision 3.18 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.19 by greg, Thu Apr 21 03:11:55 2022 UTC

# Line 113 | Line 113 | bestout(void)                  /* get best process to process packet
113                  if (pqlen[i] == pqlen[pn])
114                          cnt++;
115                                  /* break ties fairly */
116 <        if ((cnt = random() % cnt))
116 >        if ((cnt = irandom(cnt)))
117                  for (i = pn; i < nprocs; i++)
118                          if (pqlen[i] == pqlen[pn] && !cnt--)
119                                  return(i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines