fibonacci_rng 1.0.0 → 1.0.1

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: 92d9ec37d3384e39e3e122ed13281ba8001c8f2a
4
- data.tar.gz: df41080f4dc1a92a75028a4f8cce4f94f5c969ed
3
+ metadata.gz: 21f5b3081ee28c32daf5ae90cba9e99cb2d7343b
4
+ data.tar.gz: bfa73f2a5979e51fb5d05ad7df4d801d1d1e62b3
5
5
  SHA512:
6
- metadata.gz: 7885893e8155ca7b2c59ffd7688dd319a9935288b1796113d7185d263e4caad9c718aabbee84e1c7ca7e6c24bf8a79bbfd68634709c21467b02cb9ba22bb77de
7
- data.tar.gz: 3e5cb32a061f12aa8a6218984318509788aea414a69ea4d2149733fd783bcd834bd0a86b7c7e522756cf08bda9fffea7177310c6cb870763c33ad9e437156331
6
+ metadata.gz: d5b763aa1e08b9d14677f1b6bf6e8dee8bac807348f368f27dcd2f8025ac1d8e692c71f66859dfb412269fec312b7ea8b978f9ebbc46a4691833ecd69377d562
7
+ data.tar.gz: 38b70bbf54128e8af1290ca7b98e43b984e04dba4c2d57e0e8f076511aca1acbd8a27a5ef3452793f81d57f5852cf1c831d7b292f66dc049a0e4b034faef0086
data/README.md CHANGED
@@ -159,17 +159,14 @@ salt_string = salter.hash_string
159
159
 
160
160
  Each time any of these is run, a different salt string will be generated.
161
161
 
162
- #### Deprecated Methods
162
+ #### Methods back in Good Standing
163
163
 
164
164
  * bytes - This method would seem to generate an array of random bytes. It does
165
- not. That's why it's deprecated. Instead it generates a string with random
166
- byte code values. Plays havoc with encodings too. To get an array of len random
167
- byte values, try this example:
168
-
169
- ```ruby
170
- generator = FibonacciRng.new
171
- random_bytes = Array.new(len) { generator.byte }
172
- ```
165
+ not. However, it doesn't matter either. The bytes method was added to improve
166
+ interoperability with the standard Random class. Thus deprecating it was a
167
+ mistake. This note serves to announce that the bytes method is not going away.
168
+ The source code will say it is deprecated until the next code update, but that
169
+ comment is in error.
173
170
 
174
171
  ## Theory of Operation
175
172
 
@@ -248,7 +245,7 @@ this can be accomplished.
248
245
 
249
246
  #### Plan A
250
247
 
251
- 1. Fork it
248
+ 1. Fork it ( https://github.com/PeterCamilleri/fibonacci_rng/fork )
252
249
  2. Create your feature branch (`git checkout -b my-new-feature`)
253
250
  3. Commit your changes (`git commit -am 'Add some feature'`)
254
251
  4. Push to the branch (`git push origin my-new-feature`)
@@ -34,7 +34,7 @@ class FibonacciRng
34
34
  @buffer[0] & BYTE
35
35
  end
36
36
 
37
- #[Deprecated] Get a string of random bytes
37
+ #Get a string of random bytes
38
38
  def bytes(length)
39
39
  result = ""
40
40
  length.times {result << byte.chr}
@@ -2,5 +2,5 @@
2
2
 
3
3
  #The class of Fibonacci inspired random number generators.
4
4
  class FibonacciRng
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fibonacci_rng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-03 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest_visible