blob: 13ce09042ef9825831fe096772abb2d0e724b7fa [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <trace-engine/instrumentation.h>
#include <atomic>
namespace {
std::atomic_uint64_t g_nonce{1u};
} // namespace
__EXPORT uint64_t trace_generate_nonce() {
return g_nonce.fetch_add(1u, std::memory_order_relaxed);
}