tests: mock virRandomBits to make it endian stable
tests: mock virRandomBits to make it endian stable

virRandomBits is implemented in terms of virRandomBytes. Although we
mock virRandomBytes to give a stable value, this is not sufficient to
make virRandomBits give a stable value. The result of virRandomBits will
vary depending on endianness. Thus we mock virRandomBits to return a
stable value directly.

Reviewed-by: Boris Fiuczynski <2648abdd55bfebf313fd324b464b047e6eea300e@linux.ibm.com>
Tested-by: Boris Fiuczynski <2648abdd55bfebf313fd324b464b047e6eea300e@linux.ibm.com>
Reviewed-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>
Signed-off-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

jardasgit/libvirt,andreabolognani/libvirt,eskultety/libvirt,olafhering/libvirt,olafhering/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jfehlig/libvirt,libvirt/libvirt,jardasgit/libvirt,olafhering/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,zippy2/libvirt,nertpinx/libvirt,eskultety/libvirt,andreabolognani/libvirt,crobinso/libvirt,libvirt/libvirt,fabianfreyer/libvirt,crobinso/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,eskultety/libvirt,fabianfreyer/libvirt,zippy2/libvirt,olafhering/libvirt,jardasgit/libvirt,andreabolognani/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,zippy2/libvirt,eskultety/libvirt,crobinso/libvirt