mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +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)
|
int buflen)
|
||||||
{
|
{
|
||||||
while (buflen > 0) {
|
while (buflen > 0) {
|
||||||
*buf = virRandom(256);
|
*buf++ = virRandom(256);
|
||||||
buflen--;
|
buflen--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user