blob: f1cb5b9c4192f6f7138d4dded17106a26dff5367 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "random.hpp"
#include <cryptopp/osrng.h>
namespace ndn {
namespace random {
uint32_t
generateWord32()
{
static CryptoPP::AutoSeededRandomPool rng;
return rng.GenerateWord32();
}
} // namespace random
} // namespace ndn