mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[loc] add random request for translator help where needed
* This will randomly produce a message for users of a translation that hasn't been updated in a while requesting help and pointing them to: http://rufus.akeo.ie/translate * Closes #435 * Also fix a WDK compilation issue with strtoll
This commit is contained in:
parent
474e136e52
commit
26af32b522
7 changed files with 48 additions and 12 deletions
|
@ -457,8 +457,7 @@ static unsigned int test_rw(HANDLE hDrive, blk_t last_block, size_t block_size,
|
|||
|
||||
for (pat_idx = 0; pat_idx < nb_passes; pat_idx++) {
|
||||
if (cancel_ops) goto out;
|
||||
srand((unsigned int)GetTickCount());
|
||||
id_offset = rand()* (block_size-sizeof(blk_t)) / RAND_MAX;
|
||||
id_offset = rand() * (block_size-sizeof(blk_t)) / RAND_MAX;
|
||||
pattern_fill(buffer, pattern[pat_idx], blocks_at_once * block_size);
|
||||
uprintf("%sUsing offset %d for fake device check\n", bb_prefix, id_offset);
|
||||
num_blocks = last_block - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue