Q: Coinstar point How can I create a file with custom size in linux ? A: You can create a file using the dd command in linux dd if=/dev/zero of=/root/keyfile bs=1M count=1024 This will create a file at /root/keyfile with 1024MB size. dd if=/dev/urandom of=/root/keyfile bs=1024 count=4 This will create a file with random content…Continue reading How To Create A File With Specified Size In Linux
Tag: Random
Uniqid() – The easiest way to generate unique words
I have seen many PHP developers still use rand() for generating security tokens/unique strings, mostly for generating validation strings such as Email validation etc rand() is a security hazard and should never be used to generate a security token. However, there is another function mt_rand() which generates a better random value. What if you want…Continue reading Uniqid() – The easiest way to generate unique words