Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check whether /dev/urandom is character device
This checks whether `/dev/urandom` is a character based device, which is the expectation. This is considered good practice to prevent attacks where the device is being replaced, etc. References: [1]: https://github.com/jedisct1/libsodium/blob/c752eb55d9e9992bc38e7790128953427aa0a89f/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c#L164 [2]: https://twitter.com/CiPHPerCoder/status/733904477196029954
- Loading branch information