datasketches 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 4908d3d98b8094b81746412d4faec9c4d64799d6a5d6333c899b6283af248050
4
- data.tar.gz: d2caf284bc83ccc6b8ee75033f247ed4cc87f3ac94470f661f6b0a09f69b75e8
3
+ metadata.gz: 9131edb6c019db8cd0dbb98aaf1321ba213efe5911ea17dd37f4e2a6cd8e7125
4
+ data.tar.gz: dc60612514895814bb7e920d8e66029b10abb820a6a6617e6426cc725482d6e2
5
5
  SHA512:
6
- metadata.gz: 44728a824a3e7608717bb7f31f063dc098cf090de708bc218f9bf14c89de0de467d932300d95e4bea5bc016da66da5d7f7c25345b8af101d2a88cba14b7f27f3
7
- data.tar.gz: 9efbd5deaec87ccdadeec2ca79de1604c0e9dd2659d7b8466a67e03f267340080f7ea5265da9e59241072017bb835a852233d52fae586230572f38071222b7c2
6
+ metadata.gz: b030673f22e3c02c7a1805a9c8378e305b4878c18c4c92c3cdccaa54ea2ea9a87871b6a858563a02be510f6371bfe1c34e76386ccad975da05a6bd09071c5ee9
7
+ data.tar.gz: 11b1cbd76b5e47547b54ef39c195a2d9caa2a1a2a7ec3b8ed33be87b0e98adfa6cbef1ac8e6f5af6d4b57390731b10949f13620b4f916e15b7c73a449dfdfaa5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2 (2024-01-13)
2
+
3
+ - Updated DataSketches to 5.0.2
4
+
1
5
  ## 0.4.1 (2023-12-23)
2
6
 
3
7
  - Updated DataSketches to 5.0.1
@@ -1,3 +1,3 @@
1
1
  module DataSketches
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -144,7 +144,7 @@ void density_sketch<T, K, A>::compact_level(unsigned height) {
144
144
  auto& level = levels_[height];
145
145
  std::vector<bool> bits(level.size());
146
146
  bits[0] = random_utils::random_bit();
147
- std::random_shuffle(level.begin(), level.end());
147
+ std::shuffle(level.begin(), level.end(), random_utils::rand);
148
148
  for (unsigned i = 1; i < level.size(); ++i) {
149
149
  T delta = 0;
150
150
  for (unsigned j = 0; j < i; ++j) {
@@ -1 +1 @@
1
- 5.0.1
1
+ 5.0.2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasketches
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-23 00:00:00.000000000 Z
11
+ date: 2024-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubygems_version: 3.4.10
327
+ rubygems_version: 3.5.3
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: Sketch data structures for Ruby