lightstep 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e49e5a28ade0348fcd04e33d58d0f995db4ad365
4
- data.tar.gz: 81f79a27f29cb1bfc11149d7365580dd8f5f1743
3
+ metadata.gz: fc0e4c5014d6faa03fa003719be953694172edec
4
+ data.tar.gz: 49e19c0af47dcc36920705ccec004d41a3659247
5
5
  SHA512:
6
- metadata.gz: c6fb24c35ef2123e0e112a9524b442f71be9949ae769d521afb5df136d94a4367ea126b1e4ca7c77e6e1754f6fb1443deba872e3999f31d57262a8414e3ab306
7
- data.tar.gz: d336f9c4651201df2b43a7372002b6c9b57c2e95357e8af05d0e381c7bf5306ab3d276aa6bf6a4f4b044f83dd9bd5e327955ef885e6f0aad268c386696a31caf
6
+ metadata.gz: 64e8664f49a8dba1e03ccaf6890939920e8314cab4ac13a205988d18b8a9da76bcaf413db42ec2151e9aeaa396dbc99e5ddc87239c54bf760015b2c23cbd0ad4
7
+ data.tar.gz: d1ed529f4a3fcd842245e049e41a82704387757d5783dff23763c63d12e083fd31060f8130ea4eb05f72ba3e0b1be0f66f0898b4efbe93247f33f228bf243cab
data/lib/lightstep.rb CHANGED
@@ -26,10 +26,8 @@ module LightStep
26
26
  # Returns a random guid. Note: this intentionally does not use SecureRandom,
27
27
  # which is slower and cryptographically secure randomness is not required here.
28
28
  def self.guid
29
- @_rng ||= Random.new
30
- # Re-seed the PRNG on a PID change
31
- if @_lastpid ||= $$
32
- @_lastpid = $$
29
+ unless @_lastpid == Process.pid
30
+ @_lastpid = Process.pid
33
31
  @_rng = Random.new
34
32
  end
35
33
  @_rng.bytes(8).unpack('H*')[0]
@@ -1,3 +1,3 @@
1
1
  module LightStep
2
- VERSION = '0.10.2'.freeze
2
+ VERSION = '0.10.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightstep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bcronin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby