Re: UUID version 4 needed

2018-07-07 Thread Jeremy French via 4D_Tech
Is the version number being decoded correctly? According to Wikipedia, there are several variants of encoding UUIDs: 1) Little-endian 2) Big-endian 3) Mixed-endian To decode the UUID version number, you need to know what encoding variant was used: Little-endian, Big-endian or Mixed-endian.

Re: UUID version 4 needed

2018-07-07 Thread Jeffrey Kain via 4D_Tech
If you look at the MSDN site, there are a a couple of different ways to generate a UUID. I'm pretty sure it's not a bug in Windows but rather 4D calling a different function... :) https://docs.microsoft.com/en-us/windows/desktop/api/rpcdce/nf-rpcdce-uuidcreatesequential

Re: UUID version 4 needed

2018-07-07 Thread npdennis via 4D_Tech
> Is there anybody that can confirm that on WIndows 4D generates it the wrong > way”? If I generate one on Mac OS X, 4D v16.3 I get what looks like version 4: 9D93513FEC514B3DA0FC0894C87C41C6 If I use the same code on Windows 8 I get one that does not look like version 4:

RE: UUID version 4 needed

2018-07-07 Thread Chip Scheide via 4D_Tech
e 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 &

Re: UUID version 4 needed

2018-07-07 Thread Jeffrey Kain via 4D_Tech
Strange in light of what Miyako wrote that 4D just calls through to the OS. I guarantee you that the Win32API plug-in call is an unmodified OS call - maybe that’s your workaround for now? I tested on v17 final candidate Windows 64-bit and saw the same as the others - no ‘4’ in that position.

Re: UUID version 4 needed

2018-07-07 Thread Arnaud de Montard via 4D_Tech
> Le 6 juil. 2018 à 16:05, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> a écrit : > > And in fact, my 4D generated UUID is rejected by the web service, saying it > isn't a 4 version UUID with

RE: UUID version 4 needed

2018-07-07 Thread Piotr Chabot Stadhouders via 4D_Tech
s not generate a version 4 UUID --> 15th hex digit is a 4 > > > > > >> -Oorspronkelijk bericht----- > >> Van: Dennis, Neil > >> Verzonden: vrijdag 6 juli 2018 16:25 > >> Aan: Piotr Chabot Stadhouders ; 4D iNug > >> Technical <4d_

Re: UUID version 4 needed

2018-07-06 Thread Keith Culotta via 4D_Tech
$a:=Substring(Generate UUID;13;1) ALERT($a) Mac 16.225201 64bit - returns a "4" (client/server) Mac 17.224978 64bit - returns a "4" Char 15 is random. v16 tested on Macs of various ages and 10.12, 10.13. Keith - CDI > On Jul 6, 2018, at 10:33 AM, Piotr Chabot Stadhouders via 4D_Tech >

RE: UUID version 4 needed

2018-07-06 Thread Chip Scheide via 4D_Tech
Chabot Stadhouders ; 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 >> >>

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
nden: vrijdag 6 juli 2018 16:25 > Aan: Piotr Chabot Stadhouders ; 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 > > V

RE: UUID version 4 needed

2018-07-06 Thread Dennis, Neil via 4D_Tech
> 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

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
an: Dennis, Neil > Verzonden: donderdag 5 juli 2018 17:06 > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > CC: Piotr Chabot Stadhouders > Onderwerp: RE: UUID version 4 needed > > > Does anybody know how to generate an UUID version 4 > > Doesn't 4D already ge

RE: UUID version 4 needed

2018-07-05 Thread Dennis, Neil via 4D_Tech
> As far as I know most computers generate pseudo random and if so will > increase chance of UUID's colliding no? Correct > However it would be an advantage to "know" what the limitations (of what we > mostly use to generate unique keys) are For there to be a one in a billion chance of

Re: UUID version 4 needed

2018-07-05 Thread Keisuke Miyako via 4D_Tech
I'm not sure how that would solve any uncertainties. 4D is a native Win32/Cocoa/Carbon app, so it would be natural to assume that it simply calls UuidCreate on Windows and [NSUUID UUID] or CFUUIDCreate on Mac. but will then go on to ask Apple and Microsoft the same question? as already pointed

RE: UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
, Neil > Verzonden: donderdag 5 juli 2018 17:06 > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > CC: Piotr Chabot Stadhouders > Onderwerp: RE: UUID version 4 needed > > > Does anybody know how to generate an UUID version 4 > > Doesn't 4D already generate version 4

RE: UUID version 4 needed

2018-07-05 Thread Jim Labos - infobase via 4D_Tech
This brings up the question of shouldn't 4D confirm what method they are using? The random (version 4) does rely on the host computer's system to generate the randomness I would assume so that becomes the weakness (according to the definitions). As far as I know most computers generate pseudo

RE: UUID version 4 needed

2018-07-05 Thread Dennis, Neil via 4D_Tech
> Does anybody know how to generate an UUID version 4 Doesn't 4D already generate version 4 UUIDs? In version 4 the 15th hex digit is always a 4, it seems that this is what 4D uses. If you need a good explanation, of the various types, wikipedia works

RE: UUID version 4 needed

2018-07-05 Thread Stephen J. Orth via 4D_Tech
ers via 4D_Tech Sent: Thursday, July 05, 2018 9:54 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Piotr Chabot Stadhouders Subject: UUID version 4 needed Hi all, I need to generate an UUID but it MUST be version 4 I know in 4D there is the command Generate UUID and the NTK plugin has th

UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, I need to generate an UUID but it MUST be version 4 I know in 4D there is the command Generate UUID and the NTK plugin has the command NTK Create UUID but as far as I know they both are not UUID version 4 Does anybody know how to generate an UUID version 4? Thanks, Piotr