Modified word generation from integers so that it supports up to 64 bit words