updated document for randinit