Struct desfire::randbytes

Struct Documentation

struct randbytes

Structure that can be injected into a mlab::bin_data to produce a sequence of random bytes.

mlab::bin_data d;
d << randbytes(24); // Generate 24 random bytes

Public Functions

inline explicit constexpr randbytes(std::size_t len)

Marks that len random bytes have to be generated.

Public Members

std::size_t n

Number of random bytes to generate.