aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/util/secret.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-26 15:28:29 -0800
committerelijah <elijah@riseup.net>2013-02-26 15:28:29 -0800
commit4be8c3890545e4eca743882807e9c8c375d00da6 (patch)
treebf8a86f84246e2bfb3b83208e7a53c929ce51254 /lib/leap_cli/util/secret.rb
parent4a3212ac4d3221c8ae91a64b2be4ccbcec5ede95 (diff)
downloadleap_cli-4be8c3890545e4eca743882807e9c8c375d00da6.tar.gz
leap_cli-4be8c3890545e4eca743882807e9c8c375d00da6.tar.bz2
fix for ruby 1.8 compatibility
Diffstat (limited to 'lib/leap_cli/util/secret.rb')
-rw-r--r--lib/leap_cli/util/secret.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/util/secret.rb b/lib/leap_cli/util/secret.rb
index 27770a7..78f363e 100644
--- a/lib/leap_cli/util/secret.rb
+++ b/lib/leap_cli/util/secret.rb
@@ -27,7 +27,7 @@ module LeapCli; module Util
pid = $$
if @pid != pid
now = Time.now
- OpenSSL::Random.seed( [now.to_i, now.nsec, @pid, pid].join )
+ OpenSSL::Random.seed( [now.to_i, @pid, pid].join )
@pid = pid
end
end