[syslinux] [PATCH] README: documenting the need for /usr/include/uuid/uuid.h

Thomas Schmitt scdbackup at gmx.net
Mon Oct 15 23:25:10 PDT 2012


Hi,

> > +"utils/isohybrid" needs the header file,
> > +
> > +     /usr/include/uuid/uuid.h

> It is not just the header file... it depends on the *library*.

I had some iportability troubles with that when i implemented
the --efi functionality in libisofs. After implementing a fallback
by own code, i decided to omit the library for now.

The self-made UUID generator is far from perfect.
But it passed collision tests with millions of tries and in theory
it should provide at least 50 bits of entropy per day.
See
  http://bazaar.launchpad.net/~libburnia-team/libisofs/scdbackup/view/head:/libisofs/system_area.c
  void iso_random_uuid(Ecma119Image *t, uint8_t uuid[16])
in the case when Libisofs_with_uuid_generatE is not defined.

The idea is to use a hardcoded UUID as seed that was obtained from
the library and to then manipulate the seed by easily obtainable
weak pseudo-random data.

Surely one can improve the randomness by choosing more and better
sources of pseudo-random.
(One source of entropy is a CRC of the master object Ecma119Image t,
 that governs libisofs image generation. At least this one needs
 to be substituted in a standalone implementation.)


Have a nice day :)

Thomas




More information about the Syslinux mailing list