Commit 503ac69
authored
scheduler: use flb_random_bytes() instead of /dev/urandom (#2679)
Windows does not support /dev/urandom. For this reason, it ended
up using a weak entropy source for task scheduling.
Avoid this issue by using flb_random_bytes() instead.
Signed-off-by: Fujimoto Seiji <[email protected]>1 parent dc234b1 commit 503ac69
1 file changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 74 | + | |
| 75 | + | |
88 | 76 | | |
| 77 | + | |
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
| |||
0 commit comments