Coverage Report

Created: 2025-08-03 06:32

/src/bind9/lib/isc/entropy.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3
 *
4
 * SPDX-License-Identifier: MPL-2.0
5
 *
6
 * This Source Code Form is subject to the terms of the Mozilla Public
7
 * License, v. 2.0. If a copy of the MPL was not distributed with this
8
 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9
 *
10
 * See the COPYRIGHT file distributed with this work for additional
11
 * information regarding copyright ownership.
12
 */
13
14
#include <isc/entropy.h>
15
#include <isc/types.h>
16
#include <isc/util.h>
17
#include <isc/uv.h>
18
19
void
20
0
isc_entropy_get(void *buf, size_t buflen) {
21
0
  int r = uv_random(NULL, NULL, buf, buflen, 0, NULL);
22
23
0
  UV_RUNTIME_CHECK(uv_random, r);
24
0
}