blob: d983ca1342935f4832ea0a1800c492839ddfeb09 [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
8#include "base/basictypes.h"
Gilad Arnoldb33e1982014-01-27 14:46:27 -08009
Alex Deymoca0aaa62014-01-06 10:39:58 -080010#include "policy_manager/variable.h"
11
12namespace chromeos_policy_manager {
13
14// Return a random number every time it is requested. Note that values returned
15// by the variables are cached by the EvaluationContext, so the returned value
16// will be the same during the same policy request. If more random values are
17// needed use a PRNG seeded with this value.
18extern Variable<uint64>* var_random_seed;
19
20} // namespace chromeos_policy_manager
21
22#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_VARS_H