LoginLogin

Is there any way to get a unique number?

Root / Programming Questions / [.]

DevinF06Created:
Is there any way to get a unique number that is at least almost unique to the system?

Is there any way to get a unique number that is at least almost unique to the system?
What are you exactly referring to?

Is there any way to get a unique number that is at least almost unique to the system?
What are you exactly referring to?
Probably a unique number for every 3DS, so if I had two 3DSes, they'd have two different codes, and if I had a billion 3DSes, I'd have a billion different codes. This could be done with the MPNAME$() function, but you can easily change that, so it's useless.

Perhaps generate a pseudorandom value for a system and store it for later use on that system.

Is there any way to get a unique number that is at least almost unique to the system?
What are you exactly referring to?
Probably a unique number for every 3DS, so if I had two 3DSes, they'd have two different codes, and if I had a billion 3DSes, I'd have a billion different codes. This could be done with the MPNAME$() function, but you can easily change that, so it's useless.
Hashing MPNAME$() is a pretty good idea, but if the question is "can I access a serial number or something" the answer is no.

To access MPNAME$, you have to start local multiplayer, which is annoying

Using MPNAME$ would provide an extremely weak layer of security.
When did anyone mention security?

Getting a unique number that will always be the same upon generation per device? No. Absolutely impossible without a hacked version of SB. But making a number that is probably unique once and saving it to the device? Of course. User input + Time + MAINCNT Find some way to turn these into a random seed, and generate a RANDINT or whatever it's called. Chances are, it won't be the same as anyone else's number, making it effectively 'unique.'