Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Say I'm using this to generate a background image for each post on HN. Also, I want them to be consistent, so everywhere you see a mVChr post it's got a green ringed background.

I could generate a random string for each user, but then I'd have to store it somewhere. It's better to just use the username as the seed.

It's the same fundamental principle behind identicons.



Got it. I can envision the uses for it now. Thanks for the explanation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: