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 <danny@dcantah.dev>
This commit is contained in:
Danny Canter 2022-12-22 05:25:06 -05:00
parent dc9c8d3357
commit 86ee24b33c

View File

@ -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.