blob: f0ed4ed126c57071ab6015286df5140e229e40c6 [file] [log] [blame]
Alex Deymoca0aaa62014-01-06 10:39:58 -08001// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_VARS_H
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_VARS_H
7
Alex Deymoca0aaa62014-01-06 10:39:58 -08008#include "policy_manager/variable.h"
9
10namespace chromeos_policy_manager {
11
12// Return a random number every time it is requested. Note that values returned
13// by the variables are cached by the EvaluationContext, so the returned value
14// will be the same during the same policy request. If more random values are
15// needed use a PRNG seeded with this value.
Gilad Arnold570ecb12014-01-29 10:52:29 -080016extern Variable<uint64_t>* var_random_seed;
Alex Deymoca0aaa62014-01-06 10:39:58 -080017
18} // namespace chromeos_policy_manager
19
20#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_VARS_H