Fix random number generation during installation
Fix various file permissions