[Libguestfs] [PATCH nbdkit] common: Improve pseudo-random number generation.

Richard W.M. Jones rjones at redhat.com
Fri Dec 28 20:32:08 UTC 2018


This patch is rather obviously wrong if you examine the output
of the random plugin:

$ ./nbdkit -U - random size=1M --run 'qemu-img convert $nbd /tmp/random.img'
$ hexdump -C /tmp/random.img 
00000000  00 80 00 80 00 80 00 80  00 80 00 80 00 80 00 80  |................|
*
00100000

So um yes I'll try to fix this and improve the test too.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list