From: rustyBSD <rus...@gm...> - 2012-10-25 17:32:43
|
Hi all, here is a patch for the randomization in e/src/bin/e_fm_op.c. I. Simplification, andif we cannot stat(), the best thing to do is toswitch to a copy-delete operation. II.Just stuff... III. There is a problem with _e_fm_op_random_char(). When wewant to randomize a string we do srand(time()) foreachcharacter, so if the file is small enough to be deleted inless than a second, it's not randomized. And even if it's bigger, it's not goodly randomized.Sorry. Thanks |