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 +4 -4
 - data/RELEASE-NOTES +6 -0
 - data/ext/isaac/Makefile +14 -13
 - data/ext/isaac/isaac.c +1 -0
 - data/test/test_isaac.rb +1 -1
 - metadata +12 -11
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ab8da3cae3bc50a6e1f6df579e0a9eb2e07d1269
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0bda3072b306f2f72b7190048d7270a2eb9a00af
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9282aee1e1d7006384f2a3bd91845810911bef27de077c8ba2be38b5d7358afe4b46a4d40628bf5c2fedbdfdd4a9d490119cf36c6a7612b06f4b5315448c0747
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f134ff4f64eeb9916023ccc9a4872f356e578bb1af91be25e3cbd23041b90947b7c888f9c4135937266266749f2fd2b7bf45a1aee7ca65cc7316a9637f952055
         
     | 
    
        data/RELEASE-NOTES
    CHANGED
    
    
    
        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 =  
     | 
| 
       15 
     | 
    
         
            -
            hdrdir = $( 
     | 
| 
       16 
     | 
    
         
            -
            arch_hdrdir =  
     | 
| 
      
 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 =  
     | 
| 
      
 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 =  
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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 = $( 
     | 
| 
      
 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
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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  
     | 
| 
      
 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. 
     | 
| 
      
 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: 
         
     |