Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 1 | /* -*- 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 | |
| 9 | namespace repo { |
| 10 | |
| 11 | uint64_t |
| 12 | BaseHandle::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 Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame^] | 19 | } |