public function getSequence($asFloat=false,$unpredictable=false) {
		$sql="select next_{$this->tableSequence}({$this->nodeId}) id";
		$r=$this->runRawQuery($sql,null,true);
		if ($unpredictable) {
			if (PHP_INT_SIZE == 4) {
				return $this->encryption->encryptSimple($r[0]['id']);
			} else {
				// $r is always a 32 bit number so it will fail in PHP 32bits
				return $this->encryption->encryptInteger($r[0]['id']);
			}
		}
		if($asFloat)
			return floatval($r[0]['id']);
		else
			return $r[0]['id'];
	}