1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Powerpc userspace implementation of getrandom()
4 *
5 * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France
6 */
7 #include <linux/time.h>
8 #include <linux/types.h>
9
__c_kernel_getrandom(void * buffer,size_t len,unsigned int flags,void * opaque_state,size_t opaque_len,const struct vdso_rng_data * vd)10 ssize_t __c_kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state,
11 size_t opaque_len, const struct vdso_rng_data *vd)
12 {
13 return __cvdso_getrandom_data(vd, buffer, len, flags, opaque_state, opaque_len);
14 }
15