Hello community,

here is the log from the commit of package ghc-splitmix for openSUSE:Factory 
checked in at 2020-10-27 19:03:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-splitmix (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-splitmix.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-splitmix"

Tue Oct 27 19:03:09 2020 rev:10 rq:844311 version:0.1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-splitmix/ghc-splitmix.changes        
2020-10-23 15:14:56.478151431 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-splitmix.new.3463/ghc-splitmix.changes      
2020-10-27 19:03:24.778938293 +0100
@@ -1,0 +2,15 @@
+Fri Oct 23 02:03:35 UTC 2020 - psim...@suse.com
+
+- Update splitmix to version 0.1.0.3.
+  # 0.1.0.3
+
+  - Fix oops bugs in 0.1.0.2
+
+    - It's lowercase `windows.h`.
+      I blame Microsoft docs for using capital case `Windows.h` in the docs.
+      
https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocessid
+
+    - accidental `shiftL` vs `shiftR` mixup for 32-bit generator 
initialization.
+      Doesn't affect Linux.
+
+-------------------------------------------------------------------

Old:
----
  splitmix-0.1.0.2.tar.gz

New:
----
  splitmix-0.1.0.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-splitmix.spec ++++++
--- /var/tmp/diff_new_pack.j7b0nU/_old  2020-10-27 19:03:25.450938782 +0100
+++ /var/tmp/diff_new_pack.j7b0nU/_new  2020-10-27 19:03:25.454938784 +0100
@@ -19,7 +19,7 @@
 %global pkg_name splitmix
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.1.0.2
+Version:        0.1.0.3
 Release:        0
 Summary:        Fast Splittable PRNG
 License:        BSD-3-Clause

++++++ splitmix-0.1.0.2.tar.gz -> splitmix-0.1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/splitmix-0.1.0.2/Changelog.md 
new/splitmix-0.1.0.3/Changelog.md
--- old/splitmix-0.1.0.2/Changelog.md   2001-09-09 03:46:40.000000000 +0200
+++ new/splitmix-0.1.0.3/Changelog.md   2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,14 @@
+# 0.1.0.3
+
+- Fix oops bugs in 0.1.0.2
+
+  - It's lowercase `windows.h`.
+    I blame Microsoft docs for using capital case `Windows.h` in the docs.
+    
https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocessid
+
+  - accidental `shiftL` vs `shiftR` mixup for 32-bit generator initialization.
+    Doesn't affect Linux.
+
 # 0.1.0.2
 
 - Drop `time` dependency in favour of handcoded initialization
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/splitmix-0.1.0.2/cbits-win/init.c 
new/splitmix-0.1.0.3/cbits-win/init.c
--- old/splitmix-0.1.0.2/cbits-win/init.c       2001-09-09 03:46:40.000000000 
+0200
+++ new/splitmix-0.1.0.3/cbits-win/init.c       2001-09-09 03:46:40.000000000 
+0200
@@ -1,6 +1,6 @@
 #include <stdint.h>
 
-#include <Windows.h>
+#include <windows.h>
 
 uint64_t splitmix_init() {
     /* Handy list at https://stackoverflow.com/a/3487338/1308058 */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/splitmix-0.1.0.2/splitmix.cabal 
new/splitmix-0.1.0.3/splitmix.cabal
--- old/splitmix-0.1.0.2/splitmix.cabal 2001-09-09 03:46:40.000000000 +0200
+++ new/splitmix-0.1.0.3/splitmix.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:      >=1.10
 name:               splitmix
-version:            0.1.0.2
+version:            0.1.0.3
 synopsis:           Fast Splittable PRNG
 description:
   Pure Haskell implementation of SplitMix described in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/splitmix-0.1.0.2/src/System/Random/SplitMix32.hs 
new/splitmix-0.1.0.3/src/System/Random/SplitMix32.hs
--- old/splitmix-0.1.0.2/src/System/Random/SplitMix32.hs        2001-09-09 
03:46:40.000000000 +0200
+++ new/splitmix-0.1.0.3/src/System/Random/SplitMix32.hs        2001-09-09 
03:46:40.000000000 +0200
@@ -371,4 +371,4 @@
 initialSeed' :: IO Word32
 initialSeed' = do
     w64 <- initialSeed
-    return (fromIntegral (shiftL w64 32) `xor` fromIntegral w64)
+    return (fromIntegral (shiftR w64 32) `xor` fromIntegral w64)


Reply via email to