Updated method for constructing random NodeId.  Removed unused error code.