Skip to content

Commit

Permalink
Use urandom instead random for rng backend device
Browse files Browse the repository at this point in the history
As per upstream docs https://libvirt.org/formatdomain.html#elementsRng
it is recommended to use `/dev/urandom` instead of `/dev/random` to avoid some of
limitation which `/dev/random` have. Also installer uses `/dev/urandom` in the
instance template.

- https://bugzilla.redhat.com/show_bug.cgi?id=1803130
  • Loading branch information
praveenkumar committed May 12, 2020
1 parent abb4c4e commit de977c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const (
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
<backend model='random'>/dev/urandom</backend>
</rng>
</devices>
</domain>`
Expand Down

0 comments on commit de977c9

Please sign in to comment.