It's achieved by extracting some energy from the dilution process of waste salty brine with freshwater before dumping it to a river.