integer sequence randomization
- From: "tomas.kejzlar@xxxxxxxxx" <tomas.kejzlar@xxxxxxxxx>
- Date: Wed, 29 Oct 2008 06:17:25 -0700 (PDT)
Hi,
I am facing the following problem: I have a database filled with
thousands of records (tickets) distinguished by ther ID. I need to
find a way to generate unique but random integers, preferably based on
IDs of the records and these will work as barcodes (they have to be
"random" so that anyone having one ticket could not guess what is the
other barcode). We've tried generating random numbers and then
checking them against the ones we already have in our database, but
this (obviously) is getting slower and slower as the database is
getting bigger.
I've tried to investigate some possibilities of "randomizing" IDs
according to given rules (1 becomes 3,...), but the resulting sequence
is not "random" enough. Can anyone point me to a possible solution?
Thanks very much, Tom.
.
- Follow-Ups:
- Re: integer sequence randomization
- From: Unruh
- Re: integer sequence randomization
- From: rossum
- Re: integer sequence randomization
- From: amzoti
- Re: integer sequence randomization
- Prev by Date: Re: Time-Locked Encryption Redux (no central authority?)
- Next by Date: Re: integer sequence randomization
- Previous by thread: Time-Locked Encryption Redux (no central authority?)
- Next by thread: Re: integer sequence randomization
- Index(es):
Relevant Pages
|
Loading