Core part for dimensional rift moving to xml
Replaced Random with SecureRandom