toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.Network.MonadRandomBytes

Synopsis

Documentation

class (Monad m, Applicative m) => MonadRandomBytes m where Source #

Minimal complete definition

randomBytes

Instances

Instances details
MonadRandomBytes IO Source #

cryptographically secure random bytes from system source

Instance details

Defined in Network.Tox.Network.MonadRandomBytes

MonadRandomBytes m => MonadRandomBytes (NetworkLogged m) Source # 
Instance details

Defined in Network.Tox.Network.Networked

MonadRandomBytes m => MonadRandomBytes (KeyedT m) Source # 
Instance details

Defined in Network.Tox.Crypto.KeyedT

MonadRandomBytes m => MonadRandomBytes (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

(Monad m, Applicative m, RandomGen s) => MonadRandomBytes (RandT s m) Source # 
Instance details

Defined in Network.Tox.Network.MonadRandomBytes

MonadRandomBytes m => MonadRandomBytes (StateT s m) Source # 
Instance details

Defined in Network.Tox.Network.MonadRandomBytes

(Monoid w, MonadRandomBytes m) => MonadRandomBytes (WriterT w m) Source # 
Instance details

Defined in Network.Tox.Network.MonadRandomBytes

MonadRandomBytes m => MonadRandomBytes (ReaderT r m) Source # 
Instance details

Defined in Network.Tox.Network.MonadRandomBytes

(Monoid w, MonadRandomBytes m) => MonadRandomBytes (RWST r w s m) Source # 
Instance details

Defined in Network.Tox.Network.MonadRandomBytes

randomKey :: forall m a. (MonadRandomBytes m, CryptoNumber a) => m (Key a) Source #

uniform :: MonadRandomBytes m => [a] -> m a Source #

produces uniformly random element of a list