RandomAPI / Randomuser.me-old-source

[Deprecated] PHP source for Random User Generator - Please take a look at the new Node version
https://randomuser.me
137 stars 48 forks source link

Integer seeds dont seem to work? #63

Open TamDenholm opened 8 years ago

TamDenholm commented 8 years ago

I was using rand(0, 10000) to generate a seed to work with and began noticing that seeding wasnt working, after some very limited test on only integers as seeds, it seems that some seeds work and some dont when only using integers as seeds. I'm using a results parameter of 20 too.

Testing for me: http://api.randomuser.me/?seed=252&results=20 - Respects seed http://api.randomuser.me/?seed=2&results=20 - Does not respect seed http://api.randomuser.me/?seed=200&results=20 - Respects seed http://api.randomuser.me/?seed=100&results=20 Does not respect seed

I've no idea what the pattern here is?