prng-isaac 0.0.5 → 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd8d645800d3a280bb5a18a530c4f16ffb90d916
4
- data.tar.gz: f5b5184556e7a028239a1f7510cde907d2dae435
3
+ metadata.gz: ab8da3cae3bc50a6e1f6df579e0a9eb2e07d1269
4
+ data.tar.gz: 0bda3072b306f2f72b7190048d7270a2eb9a00af
5
5
  SHA512:
6
- metadata.gz: 16898f276eb280b6d476252acf75ccf84dc21f257734e7d0facf13a63cd86bd4ea912930927ddacd4b4953aa0b6e09f5cb31935d11f7be06d8f1c247500cd404
7
- data.tar.gz: 717f2707e46c45b6192e4dfa7244d07c2a23a80c93ec9dabd1cf5ada547b0f5e806f769c0dacccf218fc584bcdaf625b73ca869d35c8dced004a668ef5dd6d37
6
+ metadata.gz: 9282aee1e1d7006384f2a3bd91845810911bef27de077c8ba2be38b5d7358afe4b46a4d40628bf5c2fedbdfdd4a9d490119cf36c6a7612b06f4b5315448c0747
7
+ data.tar.gz: f134ff4f64eeb9916023ccc9a4872f356e578bb1af91be25e3cbd23041b90947b7c888f9c4135937266266749f2fd2b7bf45a1aee7ca65cc7316a9637f952055
data/RELEASE-NOTES CHANGED
@@ -1,5 +1,11 @@
1
+ STARTING WITH isaac 0.1 PLEASE SEE GIT LOG FOR RELEASE NOTES:
2
+
3
+ https://github.com/vjoel/isaac/releases
4
+
1
5
  isaac 0.0.5
2
6
 
7
+ * Available as a gem: prng-isaac.
8
+
3
9
  * Classes are in PRNG module.
4
10
 
5
11
  * Added ISAAC4 for simulation (not crypo).
data/ext/isaac/Makefile CHANGED
@@ -11,12 +11,12 @@ ECHO = $(ECHO1:0=@echo)
11
11
  #### Start of system configuration section. ####
12
12
 
13
13
  srcdir = .
14
- topdir = $(includedir)/$(RUBY_VERSION_NAME)
15
- hdrdir = $(includedir)/$(RUBY_VERSION_NAME)
16
- arch_hdrdir = $(rubyhdrdir)/$(arch)
14
+ topdir = /usr/local/include/ruby-2.0.0
15
+ hdrdir = $(topdir)
16
+ arch_hdrdir = /usr/local/include/ruby-2.0.0/x86_64-linux
17
17
  PATH_SEPARATOR = :
18
18
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = $(DESTDIR)/usr/local
19
+ prefix = /usr/local
20
20
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
21
21
  rubyarchprefix = $(rubylibprefix)/$(arch)
22
22
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -49,7 +49,7 @@ dvidir = $(docdir)
49
49
  htmldir = $(docdir)
50
50
  infodir = $(datarootdir)/info
51
51
  docdir = $(datarootdir)/doc/$(PACKAGE)
52
- oldincludedir = $(DESTDIR)/usr/include
52
+ oldincludedir = /usr/include
53
53
  includedir = $(prefix)/include
54
54
  localstatedir = $(prefix)/var
55
55
  sharedstatedir = $(prefix)/com
@@ -77,11 +77,12 @@ cflags = $(optflags) $(debugflags) $(warnflags)
77
77
  optflags = -O3 -fno-fast-math
78
78
  debugflags = -ggdb3
79
79
  warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
80
- CFLAGS = -fPIC $(cflags) $(ARCH_FLAG)
80
+ CCDLFLAGS = -fPIC
81
+ CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
81
82
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
82
83
  DEFS =
83
84
  CPPFLAGS = $(DEFS) $(cppflags)
84
- CXXFLAGS = $(CFLAGS) $(cxxflags)
85
+ CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
85
86
  ldflags = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
86
87
  dldflags =
87
88
  ARCH_FLAG =
@@ -143,12 +144,12 @@ DLLIB = $(TARGET).so
143
144
  EXTSTATIC =
144
145
  STATIC_LIB =
145
146
 
146
- BINDIR = $(bindir)
147
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
148
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
149
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
150
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
151
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
147
+ BINDIR = $(DESTDIR)$(bindir)
148
+ RUBYCOMMONDIR = $(DESTDIR)$(sitedir)$(target_prefix)
149
+ RUBYLIBDIR = $(DESTDIR)$(sitelibdir)$(target_prefix)
150
+ RUBYARCHDIR = $(DESTDIR)$(sitearchdir)$(target_prefix)
151
+ HDRDIR = $(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)
152
+ ARCHHDRDIR = $(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)
152
153
 
153
154
  TARGET_SO = $(DLLIB)
154
155
  CLEANLIBS = $(TARGET).so
data/ext/isaac/isaac.c CHANGED
@@ -226,6 +226,7 @@ Init_isaac()
226
226
  mPRNG = rb_define_module("PRNG");
227
227
  ISAAC = rb_define_class_under(mPRNG, "ISAAC", rb_cObject);
228
228
  ISAAC4 = rb_define_class_under(mPRNG, "ISAAC4", rb_cObject);
229
+ rb_define_const(ISAAC, "VERSION", rb_str_new_cstr("0.1"));
229
230
 
230
231
  rb_define_alloc_func(ISAAC, ISAAC_s_allocate);
231
232
  rb_define_method(ISAAC, "srand", ISAAC_srand, 1);
data/test/test_isaac.rb CHANGED
@@ -3,7 +3,7 @@ require 'isaac'
3
3
 
4
4
  include PRNG
5
5
 
6
- class TestIsaac < MiniTest::Unit::TestCase
6
+ class TestIsaac < Minitest::Test
7
7
  SEED = (0..255).map {rand(2**32-1)}
8
8
  # note that minitest supplies the seed to ruby's Kernel#rand
9
9
  # use '--seed N' to select a particular seed
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prng-isaac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: '0.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel VanderWerf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-22 00:00:00.000000000 Z
11
+ date: 2013-11-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A pseudorandom number generator based on Bob Jenkins' ISAAC; useful for
14
- both simulation and crypto.
14
+ both simulation and cryptography.
15
15
  email: vjoel@users.sourceforge.net
16
16
  executables: []
17
17
  extensions:
@@ -38,31 +38,32 @@ licenses: []
38
38
  metadata: {}
39
39
  post_install_message:
40
40
  rdoc_options:
41
- - --quiet
42
- - --line-numbers
43
- - --inline-source
44
- - --title
41
+ - "--quiet"
42
+ - "--line-numbers"
43
+ - "--inline-source"
44
+ - "--title"
45
45
  - ISAAC
46
- - --main
46
+ - "--main"
47
47
  - README.md
48
48
  require_paths:
49
49
  - lib
50
50
  - ext
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.0.3
63
+ rubygems_version: 2.1.10
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: ISAAC pseudorandom number generator
67
67
  test_files:
68
68
  - test/test_isaac.rb
69
+ has_rdoc: