mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[misc] remove no longer needed XP workarounds
This commit is contained in:
parent
c5f4e5a2ee
commit
903ac993f2
23 changed files with 299 additions and 937 deletions
|
@ -350,7 +350,7 @@ static void pattern_fill(unsigned char *buffer, unsigned int pattern,
|
|||
unsigned char bpattern[sizeof(pattern)], *ptr;
|
||||
|
||||
if (pattern == (unsigned int) ~0) {
|
||||
srand((unsigned int)_GetTickCount64());
|
||||
srand((unsigned int)GetTickCount64());
|
||||
for (ptr = buffer; ptr < buffer + n; ptr++) {
|
||||
// coverity[dont_call]
|
||||
(*ptr) = rand() % (1 << (8 * sizeof(char)));
|
||||
|
@ -452,7 +452,7 @@ static unsigned int test_rw(HANDLE hDrive, blk_t last_block, size_t block_size,
|
|||
cur_pattern = 0;
|
||||
|
||||
for (pat_idx = 0; pat_idx < nb_passes; pat_idx++) {
|
||||
srand((unsigned int)_GetTickCount64());
|
||||
srand((unsigned int)GetTickCount64());
|
||||
if (cancel_ops) goto out;
|
||||
// coverity[dont_call]
|
||||
id_offset = rand() * (block_size-sizeof(blk_t)) / RAND_MAX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue