includes/sessions.php
changeset 1266 f3933b355229
parent 1264 28c82f292a52
child 1271 77accbee98f5
equal deleted inserted replaced
1265:7091cff2ca01 1266:f3933b355229
  3479 			{
  3479 			{
  3480 				if ( $prev_l == 'p' && mt_rand(0, 7) == 4 )
  3480 				if ( $prev_l == 'p' && mt_rand(0, 7) == 4 )
  3481 					$word .= 't';
  3481 					$word .= 't';
  3482 				else if ( $prev_l == 'p' && mt_rand(0, 5) == 1 )
  3482 				else if ( $prev_l == 'p' && mt_rand(0, 5) == 1 )
  3483 					$word .= 'h';
  3483 					$word .= 'h';
       
  3484 				// this rule allows "ck" which can result in the occasional "dick", "fuck", etc. that tends
       
  3485 				// to end up on 4chan, but I decided to keep it, because it increases word complexity.
       
  3486 				else if ( $prev_l == 'c' && mt_rand(0, 3) == 1 )
       
  3487 					$word .= 'k';
       
  3488 				else if ( $prev_l == 'q' && mt_rand(0, 5) != 1 )
       
  3489 					$word .= 'u';
  3484 				else
  3490 				else
  3485 					$word .= $vowels{mt_rand(0, (strlen($vowels)-1))};
  3491 					$word .= $vowels{mt_rand(0, (strlen($vowels)-1))};
  3486 			}
  3492 			}
  3487 			$prev_l = substr($word, -1);
  3493 			$prev_l = substr($word, -1);
  3488 			$l = ( mt_rand(0, 1) == 1 ) ? strtoupper($prev_l) : strtolower($prev_l);
  3494 			$l = ( mt_rand(0, 1) == 1 ) ? strtoupper($prev_l) : strtolower($prev_l);