mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
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:
parent
d442599a80
commit
884b98add5
@ -80,7 +80,7 @@ virUUIDGeneratePseudoRandomBytes(unsigned char *buf,
|
||||
int buflen)
|
||||
{
|
||||
while (buflen > 0) {
|
||||
*buf = virRandom(256);
|
||||
*buf++ = virRandom(256);
|
||||
buflen--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user