Tor is moving to a single entry node implementation (#11480). I think that's because it's statistically feasible for an adversary to deploy entry and exit nodes and perform a correlation attack by profiling your use of those resources — sooner or later you'd end up using those nodes at least once.
Regardless of this circumstance I'd like to be able to quickly randomize the entry of a circuit programmatically. How can I do this? My guess is telnet tor daemon and send some commands, or is there a better/quicker way to accomplish that? If I correctly understood this answer deleting the state
file would be an option.