@Override
    public boolean networkIdMatches(@Nullable final byte[] serviceData) {
        final byte[] advertisedNetworkId = getAdvertisedNetworkId(serviceData);
        if (advertisedNetworkId != null) {
            for (NetworkKey key : mMeshNetwork.getNetKeys()) {
                if (Arrays.equals(key.getNetworkId(), advertisedNetworkId) || Arrays.equals(key.getOldNetworkId(), advertisedNetworkId))
                    return true;
            }
        }
        return false;
    }
Returns the advertised random

@param serviceData advertised service data
@return returns the advertised random
mesh/src/main/java/no/nordicsemi/android/mesh/MeshManagerApi.java