add read method for XorShift