Please sign in to comment.
Enhance makepass() and make_rand_str()
Found by: michaelortmann Patch by: michaelortmann misc.c: Rewrote make_rand_str() to be more random and faster. Entropy was worse because of randint(3) toggle beween lower case letters and digits. dccutil.c: Rewrote makepass() to be more random and faster. It returned passwords of len 10 to 15. Now it will always return passwords of len 15. There is no documentation about the maximum password length returned, but this function is exported, so i want to leave it 15 for eggdrop 1.8. dcc.c: ps -> pass because now we know the max length returned from makepass(). While at it, equally renamed the array to pass. share.c: p -> pass because now we know the max length returned from makepass(). While at it, equally renamed the array to pass. The code was really fooling the reader to think a share password of len 31 would be calculated.
- Loading branch information...
Showing with 20 additions and 27 deletions.