Avoid accessing errno on unexpected return values. by briansmith · Pull Request #810 · rust-random/getrandom (original) (raw)

newpavlov

newpavlov

josephlr

@briansmith

We expect that these system calls will never return anything other than 0 or -1 but if they do for some reason, then we shouldn't access errno.

newpavlov added a commit that referenced this pull request

Mar 3, 2026

@newpavlov

Changed

Fixed

[#810]: #810 [#811]: #811 [#814]: #814

eleboucher pushed a commit to eleboucher/towonel that referenced this pull request

Apr 18, 2026

@eleboucher

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})