Re: [libvirt] [PATCH] util: Make sure random data is initialized when in virRandom

2009-10-16 Thread Cole Robinson
Daniel P. Berrange wrote: > On Mon, Oct 12, 2009 at 10:32:14AM -0400, Cole Robinson wrote: >> When writing some tests, I mistakenly attempted to auto-generate a UUID, >> which caused a segfault: virRandom was being used without calling >> virRandomInitialize. Make sure this case can't happen. > >

Re: [libvirt] [PATCH] util: Make sure random data is initialized when in virRandom

2009-10-13 Thread Daniel P. Berrange
On Mon, Oct 12, 2009 at 10:32:14AM -0400, Cole Robinson wrote: > When writing some tests, I mistakenly attempted to auto-generate a UUID, > which caused a segfault: virRandom was being used without calling > virRandomInitialize. Make sure this case can't happen. I don't much like this as an approa

[libvirt] [PATCH] util: Make sure random data is initialized when in virRandom

2009-10-12 Thread Cole Robinson
When writing some tests, I mistakenly attempted to auto-generate a UUID, which caused a segfault: virRandom was being used without calling virRandomInitialize. Make sure this case can't happen. Signed-off-by: Cole Robinson --- src/util/util.c |8 1 files changed, 8 insertions(+), 0