Re: [libvirt] [PATCH 1/3] tests: Add mock for virRandomBytes

2016-05-19 Thread John Ferlan
On 05/19/2016 03:32 AM, Peter Krempa wrote: > On Wed, May 18, 2016 at 19:52:30 -0400, John Ferlan wrote: >> Create a mock for virRandomBytes to generate a not so random value that >> can be used by the tests to ensure the generation of an encrypted secret >> by masterKey and random

Re: [libvirt] [PATCH 1/3] tests: Add mock for virRandomBytes

2016-05-19 Thread Peter Krempa
On Wed, May 18, 2016 at 19:52:30 -0400, John Ferlan wrote: > Create a mock for virRandomBytes to generate a not so random value that > can be used by the tests to ensure the generation of an encrypted secret > by masterKey and random initialization vector can produce an expected > result. The

[libvirt] [PATCH 1/3] tests: Add mock for virRandomBytes

2016-05-18 Thread John Ferlan
Create a mock for virRandomBytes to generate a not so random value that can be used by the tests to ensure the generation of an encrypted secret by masterKey and random initialization vector can produce an expected result. The "random number" generated is based upon the size of the expected