blob: f1cb5b9c4192f6f7138d4dded17106a26dff5367 [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
7#include "random.hpp"
8
Alexander Afanasyeve9fdb802014-02-05 17:36:51 -08009#include <cryptopp/osrng.h>
10
11namespace ndn {
12namespace random {
13
14uint32_t
15generateWord32()
16{
17 static CryptoPP::AutoSeededRandomPool rng;
18
19 return rng.GenerateWord32();
20}
21
22} // namespace random
23} // namespace ndn