diff --git a/lago/providers/libvirt/templates/dom_template-base.xml.j2 b/lago/providers/libvirt/templates/dom_template-base.xml.j2
index 860d2027..cc896f8d 100644
--- a/lago/providers/libvirt/templates/dom_template-base.xml.j2
+++ b/lago/providers/libvirt/templates/dom_template-base.xml.j2
@@ -27,7 +27,7 @@
- /dev/urandom
+ {{ '/dev/urandom' if libvirt_ver >= 2002001 else '/dev/random' }}