(a, b)
| 1035 | } |
| 1036 | |
| 1037 | function xor(a, b) { |
| 1038 | const length = Math.max(a.length, b.length) |
| 1039 | const buffer = Buffer.allocUnsafe(length) |
| 1040 | for (let i = 0; i < length; i++) |
| 1041 | buffer[i] = a[i] ^ b[i] |
| 1042 | return buffer |
| 1043 | } |
| 1044 | |
| 1045 | function timer(fn, seconds) { |
| 1046 | seconds = typeof seconds === 'function' ? seconds() : seconds |