Fix RAs not being sent due to bad random number generation