util: Fix virUUIDGeneratePseudoRandomBytes

It forgets to move a pointer to a buffer for UUID and as a result
fills only the first byte of the buffer.
This commit is contained in:
Ryota Ozaki 2011-10-28 20:06:20 +09:00 committed by Eric Blake
parent d442599a80
commit 884b98add5

View File

@ -80,7 +80,7 @@ virUUIDGeneratePseudoRandomBytes(unsigned char *buf,
int buflen) int buflen)
{ {
while (buflen > 0) { while (buflen > 0) {
*buf = virRandom(256); *buf++ = virRandom(256);
buflen--; buflen--;
} }