Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32698
| Date | 2012-11-03 08:50 -0600 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: How to generate account number? |
| References | <DUB117-W39434172E99227657483BA91670@phx.gbl> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3241.1351954293.27098.python-list@python.org> (permalink) |
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
Re: How to generate account number? Michael Torrie <torriem@gmail.com> - 2012-11-03 08:50 -0600
csiph-web