Changeset 2267 for whois/vendor/current/mkpasswd.c
- Timestamp:
- Dec 27, 2017, 9:30:51 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified whois/vendor/current/mkpasswd.c ¶
r2253 r2267 365 365 void* get_random_bytes(const unsigned int count) 366 366 { 367 char *buf; 368 int fd; 369 ssize_t bytes_read; 370 371 buf = NOFAIL(malloc(count)); 367 char *buf = NOFAIL(malloc(count)); 368 372 369 #if defined HAVE_ARC4RANDOM_BUF 373 370 arc4random_buf(buf, count); … … 376 373 perror("getentropy"); 377 374 #else 375 int fd; 376 ssize_t bytes_read; 377 378 378 fd = open(RANDOM_DEVICE, O_RDONLY); 379 379 if (fd < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.