PolicyManager: Add a random number provider.
This patch adds a new provider with a single variable that returns a
random value from /dev/urandom every time it is called. The variable
is exported to all the policy implementations (currently none) in the
policy_manager/all_variables.h file.
BUG=None
TEST=unittests.
Change-Id: I6efdecd0f37f1a706b5a0dfd3a77ac4205e35aa0
Reviewed-on: https://chromium-review.googlesource.com/181537
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/policy_manager/all_variables.h b/policy_manager/all_variables.h
index e1982f2..be77698 100644
--- a/policy_manager/all_variables.h
+++ b/policy_manager/all_variables.h
@@ -13,4 +13,6 @@
// This file includes all the different provider's header files with these
// definitions.
+#include "policy_manager/random_vars.h"
+
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_ALL_VARIABLES_H