Page MenuHomePhabricator

Improve error messages from Filesystem::readRandomBytes()
ClosedPublic

Authored by epriestley on Nov 25 2013, 8:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 12:08 AM
Unknown Object (File)
Sat, Apr 27, 4:49 PM
Unknown Object (File)
Sat, Apr 27, 4:48 PM
Unknown Object (File)
Thu, Apr 25, 12:49 AM
Unknown Object (File)
Fri, Apr 19, 3:27 PM
Unknown Object (File)
Mon, Apr 15, 9:10 AM
Unknown Object (File)
Thu, Apr 11, 10:26 AM
Unknown Object (File)
Fri, Apr 5, 6:32 PM
Subscribers

Details

Summary

Fixes T4153. Primarily, raise a better error message on Windows. Also make the function a little stricter and a little better tested.

Test Plan

Unit tests.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Tested on Windows and verified the message appears when OpenSSL is not available.