I'm trying to determine what shred uses to overwrite a file. Here's the description:
Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
Can anyone confirm the overwirte occurs with random data (as opposed to 0's, which occurs with --zero)? The man page does not include the word 'random'.
If the command does not use random values, then what is used?
Edit: Here's the code I'm looking at. Its from OpenStack's lvm.py, and its used to wipe a volume upon deletion:
+ elif FLAGS.volume_clear == 'shred':
+ clear_cmd = ['shred', '-n3']
...