group::RANDOM

This is the interface for accessing random number generator devices.

Details

defineRANDOM_VERSION


defineRANDOM_IOC_CHAR


defineI_RANDOM_GETVERSION


defineI_RANDOM_GETINFO

This request reads the random generator information.

Example:

random_info_t info;
ioctl(fildes, I_RANDOM_GETINFO, &info);

defineI_RANDOM_SETATTR

Requests the hardware to write the random generator attributes.

Example:

random_attr_t attr;
attr.o_flags = RANDOM_FLAG_SET_SEED;
attr.seed = 10;
ioctl(fildes, I_RANDOM_SETATTR, &attr);

enum@27

  • RANDOM_FLAG_SET_SEED Set the seed using I_RANDOM_SETATTR
  • RANDOM_FLAG_IS_PSEUDO Set in info flags is generator is pseudorandom
  • RANDOM_FLAG_IS_TRUE Set in info flags is generator is a true random number generator
  • RANDOM_FLAG_ENABLE Enables the random number generator
  • RANDOM_FLAG_DISABLE Disables the random number generator


date: “2019-06-27” layout: post title: struct::random_info_t katex: true

categories: struct

Methods

Details

public u32o_flags

Bitwise flags


public u32resd



date: “2019-06-27” layout: post title: struct::random_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags

Bitwise flags


public u32seed

Seed value when setting seed


public u32resd


X

Thanks for Coming!

Subscribe to news and updates