Commit 3d64055
committed
[scudo] Only read urandom if getrandom syscall isn't available.
If the getrandom system call is available, but the call returns
an error, it could mean that the system doesn't have enough
randomness to respond yet. Trying to read /dev/urandom will likely
block and cause initialization to be stalled. Therefore, return
false in this case and use the backup random data.1 parent eabfed8 commit 3d64055
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
0 commit comments