lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

> I've written a Lua binding for libuuid, a library for generating Universally
> Unique Identifiers, which is part of e2fsprogs. If you're running Linux,
> libuuid is probably already installed.

Well, if we are already depending on Linux then you might as well
use the following:

print(io.open("/proc/sys/kernel/random/uuid"):read())

:-)

The library binding may be useful for other OS though depending on the
portability of libuuid.

Bye,
     Mike