sapling/eden/fs/telemetry/SessionId.h
Stiopa Koltsov afddf66676 Move getSessionId to a separate file
Summary: Refactoring to make the following diff smaller.

Reviewed By: chadaustin

Differential Revision: D27522581

fbshipit-source-id: 8f858714fcbfe4b8f8b1c3678bb2003623abbd94
2021-04-02 11:36:13 -07:00

21 lines
393 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include <cstdint>
namespace facebook::eden {
/**
* Returns a random, process-stable positive integer in the range of [0,
* UINT32_MAX]
*/
uint32_t getSessionId();
} // namespace facebook::eden