Commit 207ac4c
committed
Add back empty slice check
#291 inadvertantly removed
this check
See #104 for why this was
added in the first place. Also, per our docs:
> If `dest` is empty, `getrandom` immediately returns success, making
> no calls to the underlying operating system.
Signed-off-by: Joe Richey <[email protected]>1 parent 47a59dd commit 207ac4c
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
0 commit comments