blob: 8555f3928ec16f451e5f549801b9f980dfea0e1f [file] [log] [blame]
Shuo Chen29c77fe2014-03-18 11:29:41 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesavento49f3a5f2017-09-23 01:36:33 -04002/*
3 * Copyright (c) 2014-2017, Regents of the University of California.
Alexander Afanasyeve1e6f2a2014-04-25 11:28:12 -07004 *
5 * This file is part of NDN repo-ng (Next generation of NDN repository).
6 * See AUTHORS.md for complete list of repo-ng authors and contributors.
7 *
8 * repo-ng is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Shuo Chen29c77fe2014-03-18 11:29:41 -070018 */
19
20#include "base-handle.hpp"
21
Davide Pesavento49f3a5f2017-09-23 01:36:33 -040022#include <ndn-cxx/util/random.hpp>
23
Shuo Chen29c77fe2014-03-18 11:29:41 -070024namespace repo {
25
26uint64_t
27BaseHandle::generateProcessId()
28{
Davide Pesavento49f3a5f2017-09-23 01:36:33 -040029 return ndn::random::generateWord64();
Shuo Chen29c77fe2014-03-18 11:29:41 -070030}
31
Davide Pesavento49f3a5f2017-09-23 01:36:33 -040032} // namespace repo