home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!charyb!dan
- From: dan@kfw.COM (Dan Mick)
- Subject: Useful function with odd? properties
- Message-ID: <1992Jul29.022244.12542@kfw.COM>
- Reply-To: dan@kfw.com (Dan Mick)
- Organization: KFW Corporation, Newbury Park, CA
- Date: Wed, 29 Jul 92 02:22:44 GMT
- Lines: 26
-
-
- We need a function to generate serial numbers. Useful properties
- of this function:
-
- - It should provide a one-to-one mapping from positive integers in
- [0, limit) to positive integers in [0, limit).
-
- - It should not exhibit easily seen correlation to the input; for instance,
- f(x) = x and f(x) = 2x MOD limit are not acceptable.
-
- - It should be easy, or at least reasonably fast with average computer
- hardware, to determine x given f(x) (the inverse function).
-
- I've thought of various hashing algorithms and encryption routines to try to
- use something I've already got, but I don't see that anything fits the
- requirements very well.
-
- Can anyone help? Can anyone suggest a better newsgroup for this kind of
- request, or am I in the right pub here?
-
-
- *****************************************************************************
- * *
- * Please email responses to dan@kfw.com...I don't receive sci.math yet *
- * *
- *****************************************************************************
-