diff --git a/clash-lib-hedgehog.cabal b/clash-lib-hedgehog.cabal
--- a/clash-lib-hedgehog.cabal
+++ b/clash-lib-hedgehog.cabal
@@ -1,7 +1,7 @@
 cabal-version:      2.2
 
 name:               clash-lib-hedgehog
-version:            1.8.1
+version:            1.8.2
 synopsis:           Hedgehog Generators for clash-lib
 description:        Hedgehog Generators for clash-lib
 bug-reports:        https://github.com/clash-lang/clash-compiler/issues
@@ -49,7 +49,7 @@
     Clash.Hedgehog.Unique
 
   build-depends:
-    containers                >= 0.5.0.0 && < 0.7,
+    containers                >= 0.5.0.0 && < 0.8,
     data-binary-ieee754       >= 0.4.4   && < 0.6,
     fakedata                  >= 1.0.2   && < 1.1,
     ghc-typelits-knownnat     >= 0.7.2   && < 0.8,
@@ -61,5 +61,6 @@
     primitive                 >= 0.5.0.1 && < 1.0,
     text                      >= 1.2.2   && < 2.2,
     transformers              >= 0.5.2.0 && < 0.7,
+    ghc                       >= 8.6.0   && < 9.11,
 
-    clash-lib                 == 1.8.1,
+    clash-lib                 == 1.8.2,
diff --git a/src/Clash/Hedgehog/Unique.hs b/src/Clash/Hedgehog/Unique.hs
--- a/src/Clash/Hedgehog/Unique.hs
+++ b/src/Clash/Hedgehog/Unique.hs
@@ -6,6 +6,7 @@
 Random generation of unique variables and unique containers.
 -}
 
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE TupleSections #-}
 
 module Clash.Hedgehog.Unique
@@ -33,7 +34,13 @@
 import Clash.Hedgehog.Internal.Bias
 
 genUnique :: forall m. MonadGen m => m Unique
-genUnique = Gen.int Range.linearBounded
+genUnique =
+#if MIN_VERSION_ghc(9,8,4)
+  Gen.word64
+#else
+  Gen.int
+#endif
+    Range.linearBounded
 
 genUniqMap
   :: forall m k v
