1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_RANDOM_H 8 #define _UAPI_LINUX_RANDOM_H 9 #include <linux/types.h> 10 #include <linux/ioctl.h> 11 #include <linux/irqnr.h> 12 #define RNDGETENTCNT _IOR('R', 0x00, int) 13 #define RNDADDTOENTCNT _IOW('R', 0x01, int) 14 #define RNDGETPOOL _IOR('R', 0x02, int[2]) 15 #define RNDADDENTROPY _IOW('R', 0x03, int[2]) 16 #define RNDZAPENTCNT _IO('R', 0x04) 17 #define RNDCLEARPOOL _IO('R', 0x06) 18 #define RNDRESEEDCRNG _IO('R', 0x07) 19 struct rand_pool_info { 20 int entropy_count; 21 int buf_size; 22 __u32 buf[]; 23 }; 24 #define GRND_NONBLOCK 0x0001 25 #define GRND_RANDOM 0x0002 26 #define GRND_INSECURE 0x0004 27 #endif 28