OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'toybox/master' into HEAD am: f353b240a5
[android-x86/external-toybox.git]
/
lib
/
password.c
diff --git
a/lib/password.c
b/lib/password.c
index
bf13c44
..
eab2d66
100644
(file)
--- a/
lib/password.c
+++ b/
lib/password.c
@@
-24,7
+24,7
@@
int get_salt(char *salt, char *algo)
if (al[i].id) s += sprintf(s, "$%c$", '0'+al[i].id);
// Read appropriate number of random bytes for salt
- i = xopen
("/dev/urandom", O_RDONLY
);
+ i = xopen
ro("/dev/urandom"
);
xreadall(i, libbuf, ((len*6)+7)/8);
close(i);