blob: 6bbe2031285793ad489b7a9b881d13bad9d0d751 [file] [log] [blame]
Alexander Afanasyeve9fdb802014-02-05 17:36:51 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
Alexander Afanasyeve2dcdfd2014-02-07 15:53:28 -08007#include "common.hpp"
8
Alexander Afanasyeve9fdb802014-02-05 17:36:51 -08009#include "random.hpp"
10
Alexander Afanasyeve9fdb802014-02-05 17:36:51 -080011#include <cryptopp/osrng.h>
12
13namespace ndn {
14namespace random {
15
16uint32_t
17generateWord32()
18{
19 static CryptoPP::AutoSeededRandomPool rng;
20
21 return rng.GenerateWord32();
22}
23
24} // namespace random
25} // namespace ndn