diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py index 9299ba324..00a57f88a 100644 --- a/virtManager/addhardware.py +++ b/virtManager/addhardware.py @@ -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")