Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small optimizaions to random id generation
Use serialize instead of implode to add a bit more variance, since the location of array entries in the shuffled array (for now, only sys_getloadavg()) can vary. Add more random inputs (memory usage, Hash ID) Use SHA1 instead of MD5 - since we need a 23 character string, MD5 only gets us 22 base64 chars so using a random value from mt_rand() was only providing 10 bytes of randomness in the 23rd char.
- Loading branch information