Re: [fltk.coredev] Improve function Fl_X11_System_Driver::newUUID() - [General Use]

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: Improve function Fl_X11_System_Driver::newUUID() - [General Use] Albrecht Schlosser 14:06 Sep 30 top right image
On 9/30/20 4:56 PM MacArthur, Ian (Leonardo, UK) wrote:
I'd like to improve function Fl_X11_System_Driver::newUUID()
that generates UUIDs having it call function uuid_generate() from libuuid
when it's found at run-time. The code falls back to the present ad hoc method
when uuid_generate() isn't available.

That's in attached uuid_generate.patch.txt

The modified code can be tested adding
      fprintf(stderr, "UUID=%s\n", Fl_Preferences::newUUID());
as first statement in main() of test/preferences.cxx

Haven't tried it (Windows PC day today) but "visual inspection" looks fine, and the idea is sound in principle, so I’d say yes...


You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.