public static int getNetMicLength(final int ctl) {
        if (ctl == 0) {
            return 4; //length;
        } else {
            return 8; //length
        }
    }
Calculates hash value for advertising with node id

@param identityKey resolving identity key
@param random      64-bit random value
@param src         unicast address of the node
@return hash value
mesh/src/main/java/no/nordicsemi/android/mesh/utils/SecureUtils.java