Possibly a bug elsewhere: `nacl.random_bytes` returns an instance of `SlowBuffer` on nodejs, not `Uint8Array`. I suspect `SlowBuffer` is some flavour of an `ArrayBuffer` (https://developer.mozilla.org/en-US/docs/Web/API/ArrayBuffer) but I am not completely clear on that. I googled a bit and then decided to go with brute force.