From 86ee24b33c52f2e2abf5d7e8eb10e7788d5b9f63 Mon Sep 17 00:00:00 2001 From: Danny Canter Date: Thu, 22 Dec 2022 05:25:06 -0500 Subject: [PATCH] Runtime: Clarify mutability of global var Was about to change `urandomdev` to a constant when I realized it's intentionally mutable so it can be mocked in tests. There's other comments to the same effect so clarify here as well. Fixes: #5965 Signed-off-by: Danny Canter --- src/runtime/virtcontainers/vm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/virtcontainers/vm.go b/src/runtime/virtcontainers/vm.go index a96661d43..b5dec9912 100644 --- a/src/runtime/virtcontainers/vm.go +++ b/src/runtime/virtcontainers/vm.go @@ -19,6 +19,7 @@ import ( "github.com/sirupsen/logrus" ) +// Mutable and not constant so we can mock in tests var urandomDev = "/dev/urandom" // VM is abstraction of a virtual machine.