Clarification on ATTiny45
The RESET does not reset the device to a &quot;random&quot; state at all.  The reset behavior is well defined and documented:
According to the Microchip ATTiny45 datasheet at:
ATTiny45

What happens is documented here: