Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32698

Re: How to generate account number?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.109
X-Spam-Level *
X-Spam-Evidence '*H*': 0.78; '*S*': 0.00; 'welcome.': 0.07; 'subject:How': 0.09; '(without': 0.09; 'subject:number': 0.09; '(must': 0.16; 'call)': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'wrote:': 0.17; '(or': 0.18; 'random': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'post': 0.28; 'unlikely': 0.29; 'url:2012': 0.30; 'comments': 0.33; 'to:addr:python-list': 0.33; 'requirements': 0.33; 'along': 0.35; 'ahead': 0.35; 'consistent': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'received:org': 0.36; 'message- id:@gmail.com': 0.36; 'should': 0.36; 'thank': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'easy': 0.60; 'most': 0.61; 'here:': 0.62; 'more': 0.63; 'url:blogspot': 0.64; 'url:11': 0.71; 'subject:account': 0.74; 'guessed': 0.84; 'dozen': 0.91; 'interested?': 0.91; 'technique': 0.93
X-Virus-Scanned amavisd-new at torriefamily.org
Date Sat, 03 Nov 2012 08:50:58 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:10.0.7) Gecko/20120824 Thunderbird/10.0.7
MIME-Version 1.0
To python-list@python.org
Subject Re: How to generate account number?
References <DUB117-W39434172E99227657483BA91670@phx.gbl>
In-Reply-To <DUB117-W39434172E99227657483BA91670@phx.gbl>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3241.1351954293.27098.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351954293 news.xs4all.nl 6872 [2001:888:2000:d::a6]:52855
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32698

Show key headers only | View raw


On 11/02/2012 03:13 PM, Andriy Kornatskyy wrote:
> 
> Requirements for `account number` generator:
> 
> 1. Issue pseudo random consistent number (must be unique for dozen millions of records)
> 2. Easy check validity (without a need to make a database call)
> 
> Interested? Read more here:
> 
> http://mindref.blogspot.com/2012/11/generate-account-number.html
> 
> Comments or suggestions are welcome.

Thank you for sharing.  Your post came along at just the right time.  I
was just pondering on how to create a number that is unique each time
(or most of the time), and unlikely to be guessed ahead of time.  Your
technique should work very well for me.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to generate account number? Michael Torrie <torriem@gmail.com> - 2012-11-03 08:50 -0600

csiph-web