On Wed, Nov 26, 2025 at 12:56:23AM +0800, Kang-Che Sung wrote:
> On Mon, Nov 24, 2025 at 11:29 AM Osama Abdelkader
> <[email protected]> wrote:
> >
> > Add a simple uuidgen utility that generates RFC 4122 compliant
> > UUIDs (version 4, random). Uses the existing generate_uuid()
> > function from libbb.
> >
> > Features:
> > - Generates standard format UUIDs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
> > - RFC 4122 version 4 compliant
> > - Minimal implementation (~1.1 kb)
> > - NOFORK applet for efficiency
>
> A simple reminder that, in Linux,
> `cat /proc/sys/kernel/random/uuid` can be an alias to uuidgen.
Hi,
Just following up on this patch in case it was missed in the thread.
Regarding the point about using /proc/sys/kernel/random/uuid — I agree this
works on Linux, but I think a small uuidgen applet can still be useful in
BusyBox because:
* BusyBox runs in environments where /proc may be unavailable
(initramfs, early boot, rescue shells, Android, static systems).
* The /proc uuid interface is Linux-specific, while BusyBox is often used
on non-Linux or restricted platforms.
* Using libbb’s generate_uuid() keeps behavior consistent and portable.
Happy to improve or simplify the applet if needed.
Thanks!
Osama
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox