Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69691 invoked from network); 10 Jun 2009 04:57:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 04:57:50 -0000 Received: (qmail 99698 invoked by uid 500); 10 Jun 2009 04:58:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99627 invoked by uid 500); 10 Jun 2009 04:58:01 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 99619 invoked by uid 99); 10 Jun 2009 04:58:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 04:58:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suranjay@gmail.com designates 209.85.221.178 as permitted sender) Received: from [209.85.221.178] (HELO mail-qy0-f178.google.com) (209.85.221.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 04:57:53 +0000 Received: by qyk8 with SMTP id 8so906779qyk.5 for ; Tue, 09 Jun 2009 21:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=KKoLhY6uw/+xdwyRnjWKJVRpwmjBpcg9st4VNEy5TxY=; b=EKELT0fOmibaSaihO9zkjmwmz4nViTUq5nDx3rsqNXFf2VlLmrCi0fEmwe7lHszS8+ ROQEffBLskXyqG9MI0RTGhcu/2IhiGTht8JVAycP4k/561doWN6xiDmfWTIiSGTSL0wb zFIuXtfvkmvGvH+7ktktVG5q3Ch1KQvRE4ZMk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hDt1ZZeahn9t3P7f92foNkATZUAP5QteuF6840vKAiITqNj2f+pPW0oNZisVeMRu63 Kv85ipiGqj0y1Gym36D1Cns6qiObWwPH6xrXtbjkOQLNFE817m0xbYCBpthh93y0sUF0 PxzpdTdeyqnh1TNGr8uGGg0rjQtAvKcnClvKs= MIME-Version: 1.0 Received: by 10.229.81.139 with SMTP id x11mr209632qck.14.1244609852735; Tue, 09 Jun 2009 21:57:32 -0700 (PDT) In-Reply-To: <7921d3e40906091330h20470371jd5460b9763d03677@mail.gmail.com> References: <7d6f42360906090858r31107534tbaaaf8a02b126584@mail.gmail.com> <4A2E8C79.2090108@sun.com> <7d6f42360906091312x54f6d582jebb85b694b159c7d@mail.gmail.com> <7921d3e40906091330h20470371jd5460b9763d03677@mail.gmail.com> Date: Wed, 10 Jun 2009 10:27:32 +0530 Message-ID: <7d6f42360906092157u716fda21ue9b1edada4f2d98b@mail.gmail.com> Subject: Re: Generating UUIDs From: Suran Jayathilaka To: derby-dev@db.apache.org Content-Type: multipart/alternative; boundary=0016369891d52801a9046bf7500c X-Virus-Checked: Checked by ClamAV on apache.org --0016369891d52801a9046bf7500c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks Francois. I generated UUIDs using Rick's code snippet with an initial value I changed at random. Is this correct, or should I leave the initial value as it is? Thanks! Suran On Wed, Jun 10, 2009 at 2:00 AM, Francois Orsini wrote: > Hi Suran, > > As defined in > > https://svn.apache.org/repos/asf/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/uuid/BasicUUIDFactory.java > > // INITIAL_VALUE = a number guaranteeing that the first couple sequence numbers > // won't be monotonically increasing. > ... > ... > private static final long INITIAL_VALUE = ( 2551218188L ); > > ... > ... > > FYI, > > --francois > > > On Tue, Jun 9, 2009 at 1:12 PM, Suran Jayathilaka wrote: > >> Thanks Rick. That did the trick. The 3rd argument is a random Long, is it >> not? >> >> > --0016369891d52801a9046bf7500c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Francois.

I generated UUIDs using Rick's code snippet wit= h an initial value I changed at random. Is this correct, or should I leave = the initial value as it is?

Thanks!
Suran

On Wed, Jun 10, 2009 at 2:00 AM, Francois Orsini <francois.orsini@gmail.com><= /span> wrote:
Hi Suran,

As defined in
https://svn.apache.org/repos/asf/db/de= rby/code/trunk/java/engine/org/apache/derby/impl/services/uuid/BasicUUIDFac= tory.java

//		INITIAL_VALUE	=3D	a number guaranteeing that the first couple =
sequence numbers
// won't be monotonically increas= ing.
...
...
private static final long INITIAL_VALUE =3D ( 2551218188L );
...
...

FYI,

--francois
=

On T= ue, Jun 9, 2009 at 1:12 PM, Suran Jayathilaka <suranjay@gmail.com>= wrote:
Thanks Rick. That= did the trick. The 3rd argument is a random Long, is it not?



--0016369891d52801a9046bf7500c--