aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/util/secret.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/util/secret.rb')
-rw-r--r--lib/leap_cli/util/secret.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/util/secret.rb b/lib/leap_cli/util/secret.rb
index 47a050e..32c61d3 100644
--- a/lib/leap_cli/util/secret.rb
+++ b/lib/leap_cli/util/secret.rb
@@ -44,7 +44,8 @@ module LeapCli; module Util
pid = $$
if @pid != pid
now = Time.now
- OpenSSL::Random.seed( [now.to_i, @pid, pid].join )
+ ary = [now.to_i, now.nsec, @pid, pid]
+ OpenSSL::Random.seed(ary.to_s)
@pid = pid
end
end