Re: [Libguestfs] [PATCH] builder, sysprep: initialise the random generator

2014-01-28 Thread Richard W.M. Jones
On Tue, Jan 28, 2014 at 03:10:29PM +0100, Pino Toscano wrote: > virt-builder and virt-sysprep may make use of > Common_utils.string_random8 (which uses Random.int) for constructing > temporary paths; not initialising the random generator means that every > invocation will reuse the same name used p

[Libguestfs] [PATCH] builder, sysprep: initialise the random generator

2014-01-28 Thread Pino Toscano
virt-builder and virt-sysprep may make use of Common_utils.string_random8 (which uses Random.int) for constructing temporary paths; not initialising the random generator means that every invocation will reuse the same name used previously (!). Thus just call Random.self_init, just like virt-sparsif