def METHOD_NAME(uvm_with_rng, microvm_factory):
    """
    Test that a virtio-rng device is functional after resuming from
    a snapshot
    """
    vm = uvm_with_rng
    check_entropy(vm.ssh)
    snapshot = vm.snapshot_full()
    new_vm = microvm_factory.build()
    new_vm.spawn()
    new_vm.restore_from_snapshot(snapshot, resume=True)
    check_entropy(new_vm.ssh)