]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix UUID random generator to use /dev/random
authorLaine Stump <laine@laine.org>
Mon, 11 Jan 2010 09:05:38 +0000 (10:05 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 11 Jan 2010 09:06:54 +0000 (10:06 +0100)
commit28024f2311462d7f836e9f90aea805d1861b2abe
treefea1203d4a71cdbb499c06b46321817b7be13b33
parent0418fa2e7265d6cf938f2172a0aeb9f9d7a93022
Fix UUID random generator to use /dev/random

Only use pseudo-random generator for uuid if using /dev/random fails.
* src/util/uuid.c: The original code. would only print the warning
  message if using /dev/random failed, but would still go ahead and call
  virUUIDGeneratePseudoRandomBytes in all cases anyway.
src/util/uuid.c