Skip to content
Browse files

Issue #4 fixed (/dev/random blocking), minor README fixes

  • Loading branch information...
1 parent a756558 commit f1ed0dbc7ecde604ce8f9e41e1ea3170a6ad0121 @yuri-gushin committed Aug 24, 2011
Showing with 4 additions and 3 deletions.
  1. +3 −2 README.txt
  2. +1 −1 Roboo.pm
View
5 README.txt
@@ -52,7 +52,7 @@ The following parameters may be configured to control the module:
- IP(0.0.0.0/0) syntax whitelists a CIDR network
Roboo_charset - "UTF-8"
- - The character set to use during the challenge - so POST challenges that resubmit data correctly
+ - The character set to use during the challenge - so POST challenges resubmit data correctly
(Advanced) Roboo_challenge_hash_input - $remote_addr (client IP address)
- Sets the input to the challenge hash function producing the key - the default should be fine for most
@@ -74,7 +74,8 @@ The following parameters may be configured to control the module:
across all servers:
- Roboo secret value - use the same long random string as input
* Change & synchronize the secret periodically (e.g. with cronjob)
- - System time & validity window - ensure time is synchronized and the same Roboo_validity_window is configured
+ - System time & validity window - ensure time is synchronized and the same Roboo_validity_window is
+ configured
- Perl environment - ensure the same RANDBITS value was compiled into perl
* Verify by running: perl -MConfig -e 'print "$Config{randbits}\n";'
View
2 Roboo.pm
@@ -149,7 +149,7 @@ sub generate_secret ($) {
$shared->attach;
if ($shared->read(0,128) !~ /^$settings->{internal_masterpid}:/s) {
- my $secret = $request->variable('Roboo_secret') ? $request->variable('Roboo_secret') : makerandom_octet(Length => 64, Strength => 1);
+ my $secret = $request->variable('Roboo_secret') ? $request->variable('Roboo_secret') : makerandom_octet(Length => 64, Strength => 0);
$shared->write("$settings->{internal_masterpid}:$secret",0,128);
}

0 comments on commit f1ed0db

Please sign in to comment.
Something went wrong with that request. Please try again.