Add random seed utility function