There are different safeguards within each prison to protect prisoners from others of the same sex. VPUs for example.