Skip to content
File

Blob: src/workerd/util/entropy.h

cpp15 lines
1// Copyright (c) 2017-2022 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5#pragma once
6 
7#include <kj/array.h>
8 
9namespace workerd {
10 
11// Fills `output` with cryptographically-random bytes.
12void getEntropy(kj::ArrayPtr<kj::byte> output);
13 
14} // namespace workerd