Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25F4517B91 for ; Sun, 8 Feb 2015 20:40:01 +0000 (UTC) Received: (qmail 81578 invoked by uid 500); 8 Feb 2015 20:40:00 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 81452 invoked by uid 500); 8 Feb 2015 20:40:00 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 81437 invoked by uid 99); 8 Feb 2015 20:40:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2015 20:40:00 +0000 X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of 1983-01-06@gmx.net designates 212.227.15.19 as permitted sender) Received: from [212.227.15.19] (HELO mout.gmx.net) (212.227.15.19) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2015 20:39:53 +0000 Received: from [192.168.1.6] ([93.219.95.154]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MQ2Wx-1YFLqS3NBb-005G1F for ; Sun, 08 Feb 2015 21:39:31 +0100 Message-ID: <54D7C982.5020607@gmx.net> Date: Sun, 08 Feb 2015 21:39:30 +0100 From: Michael Osipov <1983-01-06@gmx.net> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Commons Users List Subject: Re: [POOL2] Pooling mutable objects References: <54D5D92D.5070108@gmx.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:T7X9xeH/+FLGD/rQOQKFTWdguDNm6Uk1Wzydh+hB/wVAVO8GBd/ OxJ6lmGUuHQFrpgonD3eHCWryGOR4V2RkFZ1wF6yOe9jiRivNchoVo+Rb6DN8aDYjKjjGzU H6XXCY0p92JqUG9yXQA2yQvc/KiZGFSih1sqjXbCHPoqG4eW18OT+9NYOnCCQ6kb+udZ4uY 0c8EVneKcWJFocXGuEYsw== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Am 2015-02-08 um 13:12 schrieb James Carman: > You aren't guaranteed for them not to collide. So, yes, it could happen. But UUID is neither but the probability is exteremely low. Is that what you tried to say? > On Saturday, February 7, 2015, Michael Osipov <1983-01-06@gmx.net> wrote: > >> Am 2015-02-06 um 17:14 schrieb James Carman: >> >>> Try UUID.randomUUID().toString() rather than RandomStringUtils if you >>> really want unique keys. >>> >> >> Aren't both pseudo random? >> >> I won't have more than 30 sessions in parallel. Do you think that a >> collision might happen? >> >> Michael >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >> For additional commands, e-mail: user-help@commons.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org