blob: dcebdfb9454ed175e21d3fcce54ca1040cbdfae2 [file] [log] [blame]
Shuo Chen29c77fe2014-03-18 11:29:41 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2013 Regents of the University of California.
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "base-handle.hpp"
8
9namespace repo {
10
11uint64_t
12BaseHandle::generateProcessId()
13{
14 static boost::random::mt19937_64 gen;
15 static boost::random::uniform_int_distribution<uint64_t> dist(0, 0xFFFFFFFFFFFFFFFFLL);
16 return dist(gen);
17}
18
Shuo Chen478204c2014-03-18 18:27:04 -070019}