aboutsummaryrefslogtreecommitdiff
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-05-03 07:10:17 -0400
committerTom Rini <trini@konsulko.com>2019-05-03 07:10:17 -0400
commit6e25cfe9a475e8177bad7d9f97cffead6aab6b0d (patch)
tree2a74f7339892266a8d1d9afd812e9dad38ba0593 /lib/uuid.c
parent3570ea1f98229dc8c166dfc2693510db9167f7f8 (diff)
parent4ccf678f37731d8ec09eae8dca5f4cbe84132a52 (diff)
Merge tag 'efi-2019-07-rc2' of git://git.denx.de/u-boot-efi
Pull request for UEFI sub-system for v2019.07-rc2 This pull request provides error fixes for the handling of GPT partitions and for the UEFI subsystem.
Diffstat (limited to 'lib/uuid.c')
-rw-r--r--lib/uuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uuid.c b/lib/uuid.c
index fa20ee39fc..2d4d6ef7e4 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -238,6 +238,8 @@ void gen_rand_uuid(unsigned char *uuid_bin)
unsigned int *ptr = (unsigned int *)&uuid;
int i;
+ srand(get_ticks() + rand());
+
/* Set all fields randomly */
for (i = 0; i < sizeof(struct uuid) / sizeof(*ptr); i++)
*(ptr + i) = cpu_to_be32(rand());