MCPcopy Index your code
hub / github.com/bcrypt-ruby/bcrypt-ruby / roundsForLogRounds

Method roundsForLogRounds

ext/jruby/bcrypt_jruby/BCrypt.java:671–676  ·  view source on GitHub ↗
(int log_rounds)

Source from the content-addressed store, hash-verified

669 }
670
671 static long roundsForLogRounds(int log_rounds) {
672 if (log_rounds < 4 || log_rounds > 31) {
673 throw new IllegalArgumentException("Bad number of rounds");
674 }
675 return 1L << log_rounds;
676 }
677
678 /**
679 * Perform the central password hashing step in the

Callers 1

crypt_rawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected