1*062d9380SKyle Evans /*- 2*062d9380SKyle Evans * SPDX-License-Identifier: BSD-2-Clause 3*062d9380SKyle Evans * 4*062d9380SKyle Evans * Copyright (c) 2024, Klara, Inc. 5*062d9380SKyle Evans * 6*062d9380SKyle Evans * Redistribution and use in source and binary forms, with or without 7*062d9380SKyle Evans * modification, are permitted provided that the following conditions 8*062d9380SKyle Evans * are met: 9*062d9380SKyle Evans * 1. Redistributions of source code must retain the above copyright 10*062d9380SKyle Evans * notice, this list of conditions and the following disclaimer. 11*062d9380SKyle Evans * 2. Redistributions in binary form must reproduce the above copyright 12*062d9380SKyle Evans * notice, this list of conditions and the following disclaimer in the 13*062d9380SKyle Evans * documentation and/or other materials provided with the distribution. 14*062d9380SKyle Evans * 15*062d9380SKyle Evans * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 16*062d9380SKyle Evans * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17*062d9380SKyle Evans * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18*062d9380SKyle Evans * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19*062d9380SKyle Evans * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20*062d9380SKyle Evans * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21*062d9380SKyle Evans * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22*062d9380SKyle Evans * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23*062d9380SKyle Evans * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24*062d9380SKyle Evans * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25*062d9380SKyle Evans * POSSIBILITY OF SUCH DAMAGE. 26*062d9380SKyle Evans */ 27*062d9380SKyle Evans #ifndef _SSP_RANDOM_H_ 28*062d9380SKyle Evans #define _SSP_RANDOM_H_ 29*062d9380SKyle Evans 30*062d9380SKyle Evans #include <ssp/ssp.h> 31*062d9380SKyle Evans 32*062d9380SKyle Evans #if __SSP_FORTIFY_LEVEL > 0 33*062d9380SKyle Evans 34*062d9380SKyle Evans __BEGIN_DECLS 35*062d9380SKyle Evans 36*062d9380SKyle Evans __ssp_redirect(ssize_t, getrandom, (void *__buf, size_t __len, 37*062d9380SKyle Evans unsigned int __flags), (__buf, __len, __flags)); 38*062d9380SKyle Evans 39*062d9380SKyle Evans __END_DECLS 40*062d9380SKyle Evans 41*062d9380SKyle Evans #endif /* __SSP_FORTIFY_LEVEL > 0 */ 42*062d9380SKyle Evans #endif /* _SSP_RANDOM_H_ */ 43