Merge lp:~xnox/auto-package-testing/haveged-random into lp:auto-package-testing
Proposed by
Dimitri John Ledkov
on 2012-12-14
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~xnox/auto-package-testing/haveged-random |
| Merge into: | lp:auto-package-testing |
| Diff against target: |
26 lines (+1/-5) 2 files modified
bin/prepare-testbed (+1/-0) bin/testbed/run-adt (+0/-5) |
| To merge this branch: | bzr merge lp:~xnox/auto-package-testing/haveged-random |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Auto Package Testing Developers | 2012-12-14 | Pending | |
|
Review via email:
|
|||
To post a comment you must log in.
| Martin Pitt (pitti) wrote : | # |
| Dimitri John Ledkov (xnox) wrote : | # |
I am not competent enough to compare haveged quality with urandom.
Inherently VMs don't have a good source of entropy & it gets depleted rather quickly. Enough entropy is required not only for the initial gpg key, but for many tests as well. One way or another, we want to speed up gathering entropy.
I am proposing to drop 3 lines of code hack & use one-line to set up a fast entropy source via a managed package.
Unmerged revisions
- 130. By Dimitri John Ledkov on 2012-12-14
-
Use packaged fast random number generator haveged

How is that better than /dev/urandom?
Also, I think a better fix would be to just create a GPG key statically and include that in bzr, and install it in the VM. Or even better, add an option to autopkgtest to not insist on having a GPG key in the first place, as this is absolutely unnecessary for running autopkgtest.