Commit 7979fa0c authored by Julien Fontanet's avatar Julien Fontanet

chore(test): better random data

parent b9d209ee
......@@ -14,7 +14,7 @@ const dir = 'smb2-tests-' + Date.now();
const file = dir + '\\file.txt';
const data = Buffer.from(
Array.from({ length: 1024 }, function() {
return Math.round(Math.random() * 255);
return Math.floor(Math.random() * 256);
})
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment