It includes hostname too. You can only get a collision if you do all of the following within one second:<p>1. Start an interactive shell.
2. Enter a command you want saved.
3. Exit this shell.
4. Start another shell.
5. Be unlucky such that the new shell has the same PID as the previous one.<p>This is not something to worry about.