? Is there any way to get a unique number? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Space-Restriction Challenge QSP Phase Ends on March 26!

Is there any way to get a unique number?

  • #1 ✎ 24 DevinF06 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Is there any way to get a unique number that is at least almost unique to the system? Posted Edited by DevinF06
  • #2 ✎ 248 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website
    Is there any way to get a unique number that is at least almost unique to the system?
    What are you exactly referring to?
    Posted
  • #3 ✎ 205 TheV360 Pokemon Is Awesome! I love Pokemon! Express Yourself First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself
    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.
    Posted
  • #4 ✎ 198 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies Perhaps generate a pseudorandom value for a system and store it for later use on that system. Posted
  • #5 ✎ 971 Yttria Head Admin
    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.
    Posted
  • #6 ✎ 1693 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself To access MPNAME$, you have to start local multiplayer, which is annoying Posted
  • #7 ✎ 971 Yttria Head Admin
    Using MPNAME$ would provide an extremely weak layer of security.
    When did anyone mention security?
    Posted
  • #8 ✎ 458 auceps First Year My account is over 1 year old Website Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength osu! Is Awesome! I love osu! Express Yourself 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.' Posted