Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.159 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.09; 'welcome.': 0.07; 'subject:How': 0.09; '(without': 0.09; 'subject:number': 0.09; '(must': 0.16; 'call)': 0.16; 'to:name:python-list@python.org': 0.20; 'thanks.': 0.21; 'random': 0.24; 'url:2012': 0.30; 'comments': 0.33; 'from:addr:live.com': 0.33; 'to:addr:python- list': 0.33; 'requirements': 0.33; 'consistent': 0.35; 'subject:?': 0.35; 'to:addr:python.org': 0.39; 'easy': 0.60; 'here:': 0.62; 'more': 0.63; 'url:blogspot': 0.64; 'url:11': 0.71; 'subject:account': 0.74; 'dozen': 0.91; 'interested?': 0.91; 'charset:windows-1251': 0.97 X-Originating-IP: [213.130.16.2] From: Andriy Kornatskyy To: "python-list@python.org" Subject: How to generate account number? Date: Sat, 3 Nov 2012 00:13:19 +0300 Importance: Normal Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 02 Nov 2012 21:13:19.0378 (UTC) FILETIME=[E1F6EF20:01CDB93E] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351890866 news.xs4all.nl 6888 [2001:888:2000:d::a6]:42497 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32660 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. Thanks. Andriy Kornatskyy =