;Version 4 UUID generator ;credits goes to mimec (<a href='http://php.net/uniqid#69164' class='bbc_url' title='External link' rel='nofollow external'>http://php.net/uniqid#69164</a>) Func uuid() Return StringFormat('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', _ Random(0, 0xffff), Random(0, 0xffff), _ Random(0, 0xffff), _ BitOR(Random(0, 0x0fff), 0x4000), _ BitOR(Random(0, 0x3fff), 0x8000), _ Random(0, 0xffff), Random(0, 0xffff), Random(0, 0xffff) _ ) EndFunc
1 reply to this topic
#1
Posted 31 October 2011 - 07:00 PM
Version 4 UUID generator not using COM Object calls:
;TODO;Opt('MustDeclareVars', 1)
#2
Posted 27 February 2012 - 09:13 PM
This is Great ! Just what I was looking for, as I wanted a V4-uuid .
Also came across a couple of other UUID things.
One Here: http://www.autoitscript.com/forum/topic/...pers/page__st__60__p__199602#e
And another way as shown by PTrex in another thread on a different topic.
ProgAndy gave me this one too:
The WinAPIEx library contains a function called _WinAPI_CreateGUID
http://www.autoitscript.com/forum/topic/98712-winapiex-udf/
Geez I love the AutoIT Community !
They know the answers even before the question arises ! So what's the winning Lotto Numbers EH !!!
Thanks
WhiteStar
Also came across a couple of other UUID things.
One Here: http://www.autoitscript.com/forum/topic/...pers/page__st__60__p__199602#e
And another way as shown by PTrex in another thread on a different topic.
ProgAndy gave me this one too:
The WinAPIEx library contains a function called _WinAPI_CreateGUID
http://www.autoitscript.com/forum/topic/98712-winapiex-udf/
Geez I love the AutoIT Community !
They know the answers even before the question arises ! So what's the winning Lotto Numbers EH !!!
Thanks
WhiteStar
Edited by WhiteStar, 27 February 2012 - 09:28 PM.
~ WhiteStar Magic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



