packages feed

entropy 0.4.1.6 → 0.4.1.7

raw patch · 2 files changed

+7/−6 lines, 2 filesdep ~Win32setup-changedPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: Win32

API changes (from Hackage documentation)

Files

Setup.hs view
@@ -26,7 +26,7 @@  compileCheck :: FilePath -> String -> String -> String -> IO Bool compileCheck cc testName message sourceCode = do-        withTempDirectory normal "" testName $ \tmpDir -> do+    withTempDirectory normal "" testName $ \tmpDir -> do         writeFile (tmpDir ++ "/" ++ testName ++ ".c") sourceCode         ec <- myRawSystemExitCode normal cc [tmpDir </> testName ++ ".c", "-o", tmpDir ++ "/a","-no-hs-main"]         notice normal $ message ++ show (ec == ExitSuccess)@@ -54,7 +54,7 @@  checkGetrandom :: FilePath -> LocalBuildInfo -> IO LocalBuildInfo checkGetrandom cc lbi = do-        libcGetrandom <- compileCheck cc "testLibcGetrandom" "Result of libc getrandom() Test: "+    libcGetrandom <- compileCheck cc "testLibcGetrandom" "Result of libc getrandom() Test: "                 (unlines        [ "#define _GNU_SOURCE"                                 , "#include <errno.h>"                                 , "#include <sys/random.h>"@@ -65,8 +65,8 @@                                 , "    return getrandom(&tmp, sizeof(tmp), GRND_NONBLOCK) != -1;"                                 , "}"                                 ])-        if libcGetrandom then return $ addOptions cArgsLibc cArgsLibc lbi-        else do+    if libcGetrandom then return $ addOptions cArgsLibc cArgsLibc lbi+    else do         syscallGetrandom <- compileCheck cc "testSyscallGetrandom" "Result of syscall getrandom() Test: "                 (unlines        [ "#define _GNU_SOURCE"                                 , "#include <errno.h>"
entropy.cabal view
@@ -1,5 +1,6 @@ name:           entropy-version:        0.4.1.6++version:        0.4.1.7 description:    A mostly platform independent method to obtain cryptographically strong entropy                 (RDRAND, urandom, CryptAPI, and patches welcome)                 Users looking for cryptographically strong (number-theoretically@@ -34,7 +35,7 @@   custom-setup-  setup-depends: Cabal >= 1.10 && < 3.3+  setup-depends: Cabal >= 1.10 && < 3.7                , base < 5                , filepath < 1.5                , directory < 1.4