Forum: Ruby Looking for a pure Ruby uniq ID generator

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
998dcd37297540b08b20a6558c40ec64?d=identicon&s=25 Zouplaz (Guest)
on 2007-05-31 13:07
(Received via mailing list)
Hello, I'm looking for a pure Ruby uniq non predictable ID generator

In fact, quite the same as the uniq *nix/cygwin command but fully writen
with Ruby...

Thanks
998dcd37297540b08b20a6558c40ec64?d=identicon&s=25 Zouplaz (Guest)
on 2007-05-31 13:20
(Received via mailing list)
le 31/05/2007 13:01, Zouplaz nous a dit:
>
> In fact, quite the same as the uniq *nix/cygwin command but fully writen
> with Ruby...

I mean, uuidgen
7e593ac63e5f25649b701dc25f69d1b7?d=identicon&s=25 Luis Parravicini (Guest)
on 2007-05-31 13:32
(Received via mailing list)
On 5/31/07, Zouplaz <user@domain.invalid> wrote:
> >
> > In fact, quite the same as the uniq *nix/cygwin command but fully writen
> > with Ruby...
>
> I mean, uuidgen

A google search shows ruby-uuid (
http://raa.ruby-lang.org/project/ruby-uuid/ ) a "Pure ruby UUID
generator, which is compatible with RFC4122".
481b8eedcc884289756246e12d1869c1?d=identicon&s=25 Francis Cianfrocca (blackhedd)
on 2007-05-31 15:58
(Received via mailing list)
On 5/31/07, Zouplaz <user@domain.invalid> wrote:
>
> Hello, I'm looking for a pure Ruby uniq non predictable ID generator
>
> In fact, quite the same as the uniq *nix/cygwin command but fully writen
> with Ruby...
>
> Thanks
>
>

Uuidgen is also supplied on Windows, if you decide to go that way. Just
make
sure you supply the -r parameter.
This topic is locked and can not be replied to.