diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,7 @@
 # 0.5.1 to 0.6.0
 * Changed roster update callback to take RosterUpdate type
 * Added onrosterPushL lens
+* Removed legacy `crypto-random` (this caused issues when compiling with GHC 9.2.5)
 
 # 0.5.0 to 0.5.1
 * Fixed input logger choking on long non-ascii messages
diff --git a/pontarius-xmpp.cabal b/pontarius-xmpp.cabal
--- a/pontarius-xmpp.cabal
+++ b/pontarius-xmpp.cabal
@@ -1,6 +1,6 @@
 Cabal-Version: 2.2
 Name:          pontarius-xmpp
-Version:       0.5.6.5
+Version:       0.5.6.6
 Build-Type:    Simple
 License:       BSD-3-Clause
 License-File:  LICENSE.md
@@ -17,7 +17,7 @@
                While in alpha, Pontarius XMPP works quite well and fulfills most
                requirements of the RFCs.
 Category:      Network
-Tested-With:   GHC == 9.0.1
+Tested-With:   GHC == 9.2.7
 
 Extra-Source-Files: README.md
                   , ChangeLog.md
@@ -41,7 +41,7 @@
                , conduit              >=1.3 && < 1.4
                , containers           >=0.4.0.0
                , crypto-api           >=0.9
-               , crypto-random        >=0.0.5
+               , cryptonite           >=0.30 && < 1.0
                , cryptohash           >=0.6.1
                , cryptohash-cryptoapi >=0.1
                , data-default         >=0.2
@@ -118,7 +118,6 @@
 
   if flag(with-th) && impl(ghc >= 7.6.1)
     CPP-Options: -DWITH_TEMPLATE_HASKELL
-  GHC-Options: -Wall -fwarn-tabs
   default-language:    Haskell2010
 
 Test-Suite tests
@@ -163,7 +162,7 @@
                , Tests.Parsers
                , Tests.Picklers
                , Tests.Stream
-  ghc-options: -Wall -O2 -fno-warn-orphans
+  ghc-options: -O2 -fno-warn-orphans -fconstraint-solver-iterations=10
   default-language:    Haskell2010
 
 Test-Suite runtests
@@ -177,7 +176,7 @@
                , Run.SendReceive
                , Run.Google
                , Run.Config
-  GHC-Options: -Wall -threaded
+  GHC-Options: -threaded
   Build-Depends: base
                , HUnit
                , configurator
@@ -216,4 +215,4 @@
 Source-Repository this
   Type: git
   Location: https://github.com/l29ah/pontarius-xmpp.git
-  Tag: 0.5.6.5
+  Tag: 0.5.6.6
diff --git a/source/Network/Xmpp/Tls.hs b/source/Network/Xmpp/Tls.hs
--- a/source/Network/Xmpp/Tls.hs
+++ b/source/Network/Xmpp/Tls.hs
@@ -11,7 +11,6 @@
 import                 Control.Monad
 import                 Control.Monad.Except
 import                 Control.Monad.State.Strict
-import "crypto-random" Crypto.Random
 import qualified       Data.ByteString as BS
 import qualified       Data.ByteString.Char8 as BSC8
 import qualified       Data.ByteString.Lazy as BL
