Skip to content

Commit

Permalink
Using the config files instead of default config for Garbage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
qcorradi committed Apr 29, 2024
1 parent fc7e6e6 commit eb1f012
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Verismith/Verilog2005/Generator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -881,5 +881,6 @@ garbageVerilog2005 =

runGarbageGeneration :: Config -> IO Verilog2005
runGarbageGeneration c = do
gen <- maybe createSystemRandom initialize $ c ^. configGarbageGenerator . goSeed
runReaderT garbageVerilog2005 (defGarbageOpts, gen)
let conf = _configGarbageGenerator c
gen <- maybe createSystemRandom initialize $ _goSeed conf
runReaderT garbageVerilog2005 (conf, gen)

0 comments on commit eb1f012

Please sign in to comment.