[][src]Function ruma_identifiers::device_id::generate

pub fn generate() -> Box<DeviceId>
👎 Deprecated:

use DeviceId::new instead

This is supported on feature="rand" only.

Generates a random DeviceId, suitable for assignment to a new device.