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