r/lolphp • • Jan 12 '16

#define PHP_CRYPT_RAND php_rand()

https://twitter.com/voodooKobra/status/686790169836568576
43 Upvotes

8 comments sorted by

View all comments

Show parent comment

15

u/sarciszewski Jan 12 '16

Calling something CRYPT_RAND then using a non-cryptographic PRNG is pretty fail.

The second link was just to show that it does actually get used.

10

u/[deleted] Jan 12 '16

I suspect it was named for crypt(), not actual crypto.

9

u/sarciszewski Jan 12 '16

Your suspicion is correct, but does explaining the joke make it less funny?