* util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
/dev/random. /dev/urandom is good enough for our purposes (salting).
This commit is contained in:
parent
ed660bd8ed
commit
7c515bee14
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
|
||||
/dev/random. /dev/urandom is good enough for our purposes (salting).
|
||||
|
||||
2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
|
||||
|
|
|
@ -248,7 +248,7 @@ main (int argc, char *argv[])
|
|||
{
|
||||
FILE *f;
|
||||
size_t rd;
|
||||
f = fopen ("/dev/random", "rb");
|
||||
f = fopen ("/dev/urandom", "rb");
|
||||
if (!f)
|
||||
{
|
||||
memset (pass1, 0, strlen (pass1));
|
||||
|
|
Loading…
Reference in a new issue