Commit ce3c408
committed
Add back empty slice 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 <joerichey@google.com>1 parent 47a59dd commit ce3c408
1 file changed
Lines changed: 3 additions & 1 deletion
| 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