fix entropy data array detection

It turns out that node.js crypt.randomBytes is not array(but can be indexed), so addEntropy fails with "addEntropy only supports number, array of numbers or string".