blob: 7c7bae90776326a569545d595d238909f63199f8 [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_PROVIDER_H
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_PROVIDER_H
7
8#include "base/basictypes.h"
9
10namespace chromeos_policy_manager {
11
12// Provider of random values.
13class RandomProvider {
14 public:
15 RandomProvider() {}
16
17 // Initialize the provider variables and internal state. Returns whether it
18 // succeeded.
19 bool Init();
20
21 // Destroy all the provider variables in a best-effor approach.
22 void Finalize();
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(RandomProvider);
26};
27
28} // namespace chromeos_policy_manager
29
30#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PM_RANDOM_PROVIDER_H