You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
466 B
19 lines
466 B
// 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>
|
|
#include <cstdint>
|
|
|
|
namespace openscreen {
|
|
|
|
std::array<uint8_t, 16> GenerateRandomBytes16();
|
|
void GenerateRandomBytes(uint8_t* out, int len);
|
|
|
|
} // namespace openscreen
|
|
|
|
#endif // UTIL_CRYPTO_RANDOM_BYTES_H_
|