web3-utilsFunctionsrandomBytesrandomBytes CallablerandomBytes(byteSize: number): BufferReturns a random byte array by the given bytes size@exampleconsole.log(web3.utils.randomBytes(32));> <Buffer a9 a2 70 ff 00 9d 0b c9 2f 9e 5f 0e 40 a4 da 4a f9 1c 6f 23 41 59 46 a6 b5 8b 99 49 72 01 68 99>ParametersbyteSize: numberThe size of the random byte array returnedReturns Bufferrandom byte array
Returns a random byte array by the given bytes size