File
Blob: src/workerd/util/entropy.h
| 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 | |
| 9 | namespace workerd { |
| 10 | |
| 11 | // Fills `output` with cryptographically-random bytes. |
| 12 | void getEntropy(kj::ArrayPtr<kj::byte> output); |
| 13 | |
| 14 | } // namespace workerd |