exposed getRandomData