Secure Your Hardware with Randomization and Redundancy