1 /* 2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 7 * 8 * See the COPYRIGHT file distributed with this work for additional 9 * information regarding copyright ownership. 10 */ 11 12 #pragma once 13 14 #include <stdlib.h> 15 16 #include <isc/lang.h> 17 18 /*! \file isc/nonce.h 19 * \brief Provides a function for generating an arbitrarily long nonce. 20 */ 21 22 ISC_LANG_BEGINDECLS 23 24 void 25 isc_nonce_buf(void *buf, size_t buflen); 26 /*!< 27 * Fill 'buf', up to 'buflen' bytes, with random data from the 28 * crypto provider's random function. 29 */ 30 31 ISC_LANG_ENDDECLS 32