Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 182A2200CF4 for ; Sun, 3 Sep 2017 17:36:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0B676164362; Sun, 3 Sep 2017 15:36:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F5F0164361 for ; Sun, 3 Sep 2017 17:36:31 +0200 (CEST) Received: (qmail 91706 invoked by uid 500); 3 Sep 2017 15:36:29 -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 91693 invoked by uid 99); 3 Sep 2017 15:36:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Sep 2017 15:36:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0AC3CC2488 for ; Sun, 3 Sep 2017 15:36:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ib1FW4awjD4J for ; Sun, 3 Sep 2017 15:36:23 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EB3A161032 for ; Sun, 3 Sep 2017 15:36:22 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id o63so15183582qkb.3 for ; Sun, 03 Sep 2017 08:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gxozkpVpk/aMDvWIw9GOwvMQtsAcu/Np3U8mbHdYxHU=; b=skUocqzkZTYsZurWmo8JpXi8drgjFTDLEIiCxe6OeQlor80ExqxQCfkVYHzu3e6v6v klBLWeXi5w89QcSJu2EqQHNJV2TtxRp32jcDQNg97pS0AOFeQitGF9GuYALmZTzIZ1Uh 4MkhtKfDDad4ie8InxkDOtK46BU6MaL00h9S7cM9Qiq8fUdARlgLE72NNL2gnMZObElx HW0oyFsKJ4eYMu0Cl3EY6MVCDyv4vJn1dno7bbp7eLqMzdwSmC3EgbXiWU0ZKceVjqcj OFugIVfK/D7oK+EPXAr5fWAJ3NUXDFD9/RZnigN5gw3rhNkvDffSZ31ZhutmKgzzzz+D mNNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gxozkpVpk/aMDvWIw9GOwvMQtsAcu/Np3U8mbHdYxHU=; b=HIZu15I8Fl4qZniZEKbA/v/ZcI2xh1qfqAXCcQuF2Ns5Rt+C79dPCJPrRbmPJ20Wn+ 2i4GcRDHvPoJ3ckTeZAN9wmMr58pG/Dz1VTqJCje4SAlW3ahD4QuXgDVjvpie2f9IOMW jmoE1tqDKXxjr8xjzPSeiIC9nruT9gG1UsRa66OFJDSWw0mGk5b5yl4dUMbD11Lk4q5G lJdyC95LRhhIqm/aJE397BTQK6hOmE2sBQeNx03PJ653tjkAtH74miq5rDqqhjBQmmDk NDQDApGnbx9FP2qTcPN70FvGTg29VzZGqwRlRWOyFnwBJ/YqnGHEkK2L1pXBSlrabTQI /BYw== X-Gm-Message-State: AHPjjUhNqpJuXMC9PTfO1brlNsxNSeDbZiaIAZvDWpwpEGOHPn7squkZ k5Nuf5hwHpO5pzkGtj2nBM/u36z83g== X-Google-Smtp-Source: ADKCNb4k653POiSOSuXNUNawgrGxUmNZ16TQnMHrh/gPBrcuf+WVCzAwMgvo3aaoaaaA0GtonmKRKzLNe3CP+PYJ3K4= X-Received: by 10.55.76.135 with SMTP id z129mr11216612qka.264.1504452981614; Sun, 03 Sep 2017 08:36:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.1 with HTTP; Sun, 3 Sep 2017 08:36:20 -0700 (PDT) In-Reply-To: References: From: Philippe Mouawad Date: Sun, 3 Sep 2017 17:36:20 +0200 Message-ID: Subject: Re: commons-lang3: Too early to deprecate RandomStringUtils in favor of RandomStringGenerator ? To: Commons Users List Content-Type: multipart/alternative; boundary="94eb2c0595028cef0305584ac16d" archived-at: Sun, 03 Sep 2017 15:36:32 -0000 --94eb2c0595028cef0305584ac16d Content-Type: text/plain; charset="UTF-8" Hi Again, What is the expected schedule for this plan ? Will it be available in commons-text-1.2 ? Thanks On Sun, Sep 3, 2017 at 4:28 PM, Amey Jadiye wrote: > Hello Philippe, > > Looking at similar kind of demand we are thinking to execute below plan, I > think it will be good for your expectations. > > http://markmail.org/message/azxw4nai7fs2laas > > Regards, > Amey > > On Sun, Sep 3, 2017 at 6:26 PM, Philippe Mouawad > wrote: > > > Hello, > > Since version 3.6 of commons-lang3, RandomStringUtils has been deprecated > > following introduction of commons-text. > > > > Looking at current 1.1 version (and even snapshot 1.2) I wonder if it's > not > > too early for deprecation. > > > > RandomStringUtils was very simple and intuitive to use. I don't remember > I > > ever had to think when using it :-) > > > > RandomStringGenerator is nice in terms of API and much more powerful for > > advanced usage, but it looks to me much more complex to use for simple, > > average cases: > > > > - RandomStringUtils.random ? => Is this the equivalent > > - new RandomStringGenerator.Builder() > > .filteredBy(CharacterPredicates.LETTERS) > > .build(); > > - I don't get exactly the same results ? Is it due to Unicode > chars ? > > - RandomStringUtils.randomAlphabetic(count) => new > > RandomStringGenerator.Builder() > > .withinRange('0', 'z') > > .filteredBy(CharacterPredicates.LETTERS, > > CharacterPredicates.DIGITS) > > .build().generate(count) > > > > What about use cases when count and source chars are configurable : > > > > - RandomStringUtils.random(count, chars) > > - => Are we supposed to build each time the generator ? > > > > Is it as efficient in terms of CPU and memory usage as RandomStringUtils > > equivalent ? > > > > Sorry if my questions are stupid. > > > > Thanks > > > > Regards > > > > > > -- > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > > For additional commands, e-mail: dev-help@commons.apache.org > -- Cordialement. Philippe Mouawad. --94eb2c0595028cef0305584ac16d--