my only thought would be that 4D has either a bug in the windows version of 
UUID generator, or it uses/expects some underlying mechanism at the OS level 
which is broken.

> Hi Chip, Keith,
> 
> Thanks Chip for the tip!
> But still, isn't it strange that 4D v16 does generate UUID where on 
> WIndows the 15th hex digit is a 4
> 
> Thanks Keith for testing this on OSX, but unfortunately I need this 
> on both platforms.
> 
> Is there anybody that can confirm that on WIndows 4D generates it 
> "the wrong way"?
> Or is there an explanation for this?
> 
> Gr,
> 
> Piotr
> 
>> -----Oorspronkelijk bericht-----
>> Van: Chip Scheide <4d_o...@pghrepository.org>
>> Verzonden: vrijdag 6 juli 2018 18:02
>> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
>> CC: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com>
>> Onderwerp: RE: UUID version 4 needed
>> 
>> after just a bit of google-fu
>> I found this php routine to generate a UUID. Since, in principle 4D 
>> supports
>> php... maybe you can just generate your own.
>> 
>> if (!function_exists('com_create_guid')) {
>>   function com_create_guid() {
>>     return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
>>         mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
>>         mt_rand( 0, 0xffff ),
>>         mt_rand( 0, 0x0fff ) | 0x4000,
>>         mt_rand( 0, 0x3fff ) | 0x8000,
>>         mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
>>     );
>>   }
>> }
>> 
>> source:
>> https://helloacm.com/how-to-create-uuid-in-php/
>> 
>> also there is a bunch of discussion on StackOVerflow regarding generating a
>> UUID, in various languages, and platforms
>> 
>> 
>> On Fri, 6 Jul 2018 15:33:48 +0000, Piotr Chabot Stadhouders via 4D_Tech
>> wrote:
>>> Hi,
>>> 
>>> The Win32API command sys_GetGUID does return a version 4 UUID
>>> 
>>> So on Windows :
>>> Win32API generates a version 4 UUID --> 13th hex digit is a 4
>>> 4D v16 does not generate a version 4 UUID --> 15th hex digit is a 4
>>> 
>>> 
>>>> -----Oorspronkelijk bericht-----
>>>> Van: Dennis, Neil <neil.den...@umb.com>
>>>> Verzonden: vrijdag 6 juli 2018 16:25
>>>> Aan: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com>; 4D iNug
>>>> Technical <4d_tech@lists.4d.com>
>>>> Onderwerp: RE: UUID version 4 needed
>>>> 
>>>>> And in fact, my 4D generated UUID is rejected by the web service,
>>>>> saying it
>>>> isn't a 4 version UUID
>>>> 
>>>> Very possible, it has been a while since I looked into it and I was
>>>> going off of my
>>>> fuzzy memory.
>>>> 
>>>> Neil
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> 
>>>> 
>>>> Privacy Disclaimer: This message contains confidential information and is
>>>> intended only for the named addressee. If you are not the named addressee
>>>> you should not disseminate, distribute or copy this email. Please
>>>> delete this
>>>> email from your system and notify the sender immediately by replying
>>>> to this
>>>> email.  If you are not the intended recipient you are notified that
>>>> disclosing,
>>>> copying, distributing or taking any action in reliance on the
>>>> contents of this
>>>> information is strictly prohibited.
>>>> 
>>>> The Alternative Investments division of UMB Fund Services provides a
>>>> full range
>>>> of services to hedge funds, funds of funds and private equity
>>>> funds.  Any tax
>>>> advice in this communication is not intended to be used, and cannot
>>>> be used, by
>>>> a client or any other person or entity for the purpose of (a)
>>>> avoiding penalties
>>>> that may be imposed on any taxpayer or (b) promoting, marketing, or
>>>> recommending to another party any matter addressed herein.
>>> 
>> ****************************************************************
>> ******
>>> 4D Internet Users Group (4D iNUG)
>>> FAQ:  http://lists.4d.com/faqnug.html
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> 
>> ****************************************************************
>> ******
>> ---------------
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
> 
------------
Hell is other people 
     Jean-Paul Sartre
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to