mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 18:58:30 +00:00
Make some style fixes to prng code
This commit is contained in:
parent
dab6d7a345
commit
98861b23fc
3 changed files with 9 additions and 5 deletions
|
@ -997,8 +997,10 @@ textwindows ssize_t ReadBuffer(int fd, void *data, size_t size, int64_t offset,
|
|||
if (f->kind == kFdDevNull)
|
||||
return 0;
|
||||
|
||||
if (f->kind == kFdDevRandom)
|
||||
return ProcessPrng(data, size) ? size : __winerr();
|
||||
if (f->kind == kFdDevRandom) {
|
||||
ProcessPrng(data, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
if (f->kind == kFdConsole)
|
||||
return ReadFromConsole(f, data, size, waitmask);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue