onnxruntime/onnxruntime/core/framework/random_seed.h
Justin Chu cf19c3697d
Run clang-format in CI (#15524)
### Description

Run clang-format in CI. Formatted all c/c++, objective-c/c++ files.

Excluded

```
    'onnxruntime/core/mlas/**',
    'onnxruntime/contrib_ops/cuda/bert/tensorrt_fused_multihead_attention/**',
```

because they contain assembly or is data heavy


### Motivation and Context

Coding style consistency
2023-04-18 09:26:58 -07:00

30 lines
622 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <cstdint>
namespace onnxruntime {
namespace utils {
/**
* Gets the random seed value used by onnxruntime.
*
* The random seed value can be override with SetRandomSeed().
*
* @return The random seed value.
*/
int64_t GetRandomSeed();
/**
* Sets the random seed value to be used by onnxruntime.
*
* If not called manually, the current clock will be used.
*
* @param seed The random seed value to use.
*/
void SetRandomSeed(int64_t seed);
} // namespace utils
} // namespace onnxruntime