You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
10Interesting solution. It sounds like this is a situation where you really should be just hashing all that data concatenated instead of trying to come up with your own "hash" function. There are many instances where you'd get collisions even if there is substantial data that is different for each value. My recommendation: use a hash function and then transform the binary results into decimal and truncate it as needed. To do it right, though you should really use a UUID or full hash string.Steve Pomeroy– Steve Pomeroy2011-04-12 16:28:04 +00:00Commented Apr 12, 2011 at 16:28
-
25You should give credit to your sources... This has been lifted straight out of the following article: pocketmagic.net/?p=1662Steve Haley– Steve Haley2011-05-16 12:07:44 +00:00Commented May 16, 2011 at 12:07
-
11This ID is open to collisions like you don't know what. It's practically guaranteed to be the same on identical devices from the same carrier.Seva Alekseyev– Seva Alekseyev2011-05-26 20:21:30 +00:00Commented May 26, 2011 at 20:21
-
10This may also change if the device gets upgraded.David Given– David Given2012-01-25 12:25:54 +00:00Commented Jan 25, 2012 at 12:25
-
13Very, very bad solution. Tested on two Nexus 5... Return same numbers.Sinan Dizdarević– Sinan Dizdarević2015-03-04 16:53:23 +00:00Commented Mar 4, 2015 at 16:53
|
Show 4 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
default