Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files


  • Loading branch information...
commit a1a06142ea0187446158751642b143d9015aeac7 1 parent eb857a0
@grempe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/secretsharing/shamir.rb
2  lib/secretsharing/shamir.rb
@@ -61,7 +61,7 @@ def secret_set?
# Create a random secret of a certain bitlength. Returns the
# secret and stores it in the 'secret' attribute.
def create_random_secret(bitlength = DEFAULT_SECRET_BITLENGTH)
- raise 'secret already set' if secret_set?
+ raise 'a random secret has already been set' if secret_set?
raise ArgumentError, 'max bitlength is 1024' if bitlength > 1024
@secret = get_random_number(bitlength)
Please sign in to comment.
Something went wrong with that request. Please try again.