[libvirt] [PATCH 1/4] Introduce new API for generating random numbers

2012-01-25 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The old virRandom() API was not generating good random numbers. Replace it with a new API virRandomBits which instead of being told the upper limit, gets told the number of bits of randomness required. * src/util/virrandom.c, src/util/virrandom.h: Add

Re: [libvirt] [PATCH 1/4] Introduce new API for generating random numbers

2012-01-25 Thread Eric Blake
On 01/25/2012 09:38 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com The old virRandom() API was not generating good random numbers. Replace it with a new API virRandomBits which instead of being told the upper limit, gets told the number of bits of randomness