devr-virtio.so

Updated: April 19, 2023

Random service entropy library for a Virtio RNG (random number generator)

Syntax:

random -l devr-virtio.so[:option[,option ...]]

Runs on:

QNX Neutrino

Options:

delay=seconds
Provide entropy to the random service at this interval, in seconds. (Range 1-300s, default 15s).
prio=priority
The minimum priority for the entropy collection thread.
mem=address
For ARM targets, the MMIO address of the Virtio RNG (random number generator) device. To obtain address, in the QEMU console, enter info qtree.

Description:

The devr-virtio.so shared object reads entropy from a Virtio paravirtual RNG (random number generator) and provides it to the random service PRNG (pseudo-random number generator).

For example, to enable the Virtio RNG interface for a QEMU virtual machine, add the following option to the qemu-system-target command line:

-object rng-random,filename=/dev/urandom,id=rng0

For x86_64 architectures, add the following additional option:

-device virtio-rng-pci,rng=rng0

For AArch64 and ARM architectures, add the following additional option:

-device virtio-rng-device,rng=rng0

Examples:

For AArch64:
random -t -l devr-virtio.so:mem=0x1c130200
For x86_64:
random -t -l devr-virtio.so