mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
addhardware: rng: default to /dev/urandom
If libvirt supports it. This is the recommended default nowadays
This commit is contained in:
parent
a213c8d9e9
commit
5c93db2974
@ -466,7 +466,11 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
widget.hide()
|
||||
|
||||
# RNG params
|
||||
self.widget("rng-device").set_text("/dev/random")
|
||||
default_rng = "/dev/random"
|
||||
if self.conn.check_support(self.conn.SUPPORT_CONN_RNG_URANDOM):
|
||||
default_rng = "/dev/urandom"
|
||||
self.widget("rng-device").set_text(default_rng)
|
||||
|
||||
for i in ["rng-bind-host", "rng-connect-host"]:
|
||||
self.widget(i).set_text("localhost")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user