* 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:
Vladimir 'phcoder' Serbinenko 2011-05-05 01:32:04 +02:00
parent ed660bd8ed
commit 7c515bee14
2 changed files with 6 additions and 1 deletions

View file

@ -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> 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkrescue.in (process_input_dir): Include efiemu??.o. * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.

View file

@ -248,7 +248,7 @@ main (int argc, char *argv[])
{ {
FILE *f; FILE *f;
size_t rd; size_t rd;
f = fopen ("/dev/random", "rb"); f = fopen ("/dev/urandom", "rb");
if (!f) if (!f)
{ {
memset (pass1, 0, strlen (pass1)); memset (pass1, 0, strlen (pass1));