We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
uniformByteArrayM
1 parent 7573784 commit 3100be7Copy full SHA for 3100be7
System/Random/MWC.hs
@@ -465,8 +465,13 @@ instance (s ~ PrimState m, PrimMonad m) => Random.StatefulGen (Gen s) m where
465
{-# INLINE uniformWord32 #-}
466
uniformWord64 = uniform
467
{-# INLINE uniformWord64 #-}
468
+#if MIN_VERSION_random(1,3,0)
469
+ uniformByteArrayM isPinned n g = stToPrim (Random.genByteArrayST isPinned n (uniform g))
470
+ {-# INLINE uniformByteArrayM #-}
471
+#else
472
uniformShortByteString n g = stToPrim (Random.genShortByteStringST n (uniform g))
473
{-# INLINE uniformShortByteString #-}
474
+#endif
475
476
-- | @since 0.15.0.0
477
instance PrimMonad m => Random.FrozenGen Seed m where
0 commit comments