aboutsummaryrefslogtreecommitdiff
path: root/util/crypto/random_bytes.h
blob: 3cb2fa8efa6185667827c7cc7fd3ecea7396168d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UTIL_CRYPTO_RANDOM_BYTES_H_
#define UTIL_CRYPTO_RANDOM_BYTES_H_

#include <array>

namespace openscreen {

std::array<uint8_t, 16> GenerateRandomBytes16();
void GenerateRandomBytes(uint8_t* out, int len);

}  // namespace openscreen

#endif  // UTIL_CRYPTO_RANDOM_BYTES_H_