First Open Object(ID generator)
mctrivia
Posts: 3,772
I just finished my first object that I put in the object exchange.
obex.parallax.com/objects/410/
It generates a unique and permanent ID number for each board you make. Any suggestions on things to make it better?
obex.parallax.com/objects/410/
It generates a unique and permanent ID number for each board you make. Any suggestions on things to make it better?
Comments
Great idea. I have a question ?
Should this:
if Long[noparse][[/noparse]MemoryLocation]|Long[noparse][[/noparse]MemoryLocation+4]==0
really read like this:
if Long[noparse][[/noparse]MemoryLocation]|Long[noparse][[/noparse]MemoryLocation+3]==0
(swapped +4 for +3)
Scott
Am i thinking correctly?
Hum, Maybe using some letters would decrease the size and yet still able to use the 256 version.
use x longs for you project.
d=2^(32*x-12)
gives only 0.02% chance of repeat. d is max devices you will build
php base 64
in google