forked from Entyware/File-Shredder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shredder.h
50 lines (39 loc) · 1.71 KB
/
shredder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* File Shredder deletes files on a hard disk drive in a manner that is
intended to make any recovery of the data impossible
Copyright (C) 2019 Alan Entwistle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses. */
#ifndef SHREDDER_H
#define SHREDDER_H
//#include <iostream>
//using namespace std;
#include "global_features.h"
#pragma pack(1) // sets alignment to a 1 byte boundary
#include "MersenneTwister.h" //Random number generator
#define RANDOM true
#define ARRAY false
struct Shredding_thread_structure{
//writing uniform arrays
unsigned char *array;
unsigned char value;
unsigned long array_length;
//writing random arrays
bool random;
char file_name[MAX_PATH];
Shredding_thread_structure(){memset(this, 0, sizeof(*this));};
~Shredding_thread_structure(){};
};
//Forward declarations of random number functions in shredder.cpp
MTRand seed_random_from_file(char *);
void prime_random(MTRand &);
//Forward declarations of functions in main_window.cpp
void shredder(int, char *[]);
#endif