Kea  2.3.2-git
crypto_rng.cc
Go to the documentation of this file.
1 // Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #include <config.h>
8 
9 #include <cryptolink.h>
10 #include <cryptolink/crypto_rng.h>
11 
12 #include <boost/scoped_ptr.hpp>
13 
14 #include <cstring>
15 
16 namespace isc {
17 namespace cryptolink {
18 
20 }
21 
23 }
24 
25 std::vector<uint8_t>
26 random(size_t len)
27 {
28  RNGPtr rng(CryptoLink::getCryptoLink().getRNG());
29  return (rng->random(len));
30 }
31 
32 } // namespace cryptolink
33 } // namespace isc
Defines the logger used by the top-level component of kea-lfc.