roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.02k stars 203 forks source link

Reimplement core::uuid_generate() using libuuid #692

Open gavv opened 4 months ago

gavv commented 4 months ago

We have simple implementation of UUID generation using random numbers. It would be great to have alternative optional implementation using libuuid from util-linux package.

Our implementation is portable but unsophisticated. It blindly generates random UUID no matter where it's running and what's the quality of PRNG. libuuid, on the other hand, is capable to check system capabilities: if high-quality random generator is available, it will use it, otherwise it will fallback to using low-level system information like MAC address and system time. It will also employ uuidd if it's present on system.

Steps:

Related docs:

nolan-veed commented 4 months ago

This one is right up my street. I'll do it.