mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-04 18:30:03 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user