so while attaching a 4 dial code lock onto a gate with a made up code and after i tried to unlock the gate i noticed the code i put in was not working, so i had to raid my way out of the gate and when i picked the lock up the code was scrambled as expected so then i reset the code lock to 1111 to try test it again and it had scrambled the code lock again and the code was not working therefor locking me in my base.