In the Windows OS command line, when I need to quickly create a file of arbitrary size, I use the command:
fsutil file createnew <filename> <size_in_bytes>
I recently created a 100GB file using this native tool, and I was surprised that it took less than 500ms to create the file. I created the file on a platter-based hard drive that was previously filled with data.
Out of curiosity, I opened the file in a hex editor, and it appeared to be completely empty (admittedly, I didn't manually inspect all 100GB). I was expecting it to be filled with the previous contents of the hard drive, given that there is no way it just wrote 100GB of data in 500ms.
What is fsutil file createnew actually doing? And, depending on what it actually does, can it be used as a low-security rapid wipe technique (single-pass)?