use uuid4 instead of randint for uniqueness

This is needed when generating temporary variables for transferring a
sparse matrix.