Share via


random_device::random_device

Constructs the engine.

random_device(const std::string& str);

Parameters

  • str
    The initialization string. This parameter is not used.

Remarks

The constructor initializes the device as needed, ignoring str.

Example

For example code, see random_device Class.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

random_device Class