Menu

#22 rndseed option should work in the circuit file

closed
5
2018-12-04
2012-12-09
No

Currently rndseed option only works when set in .spiceinit.
This works as documented, but it would be nice if it worked also in circuit file.

I'm using ngspice as a part of other program and I can't just change the users .spiceinit file, but I'd like to use rndseed option to get the same sequence of random numbers.

Discussion

  • Holger Vogt

    Holger Vogt - 2012-12-13
    • labels: --> Frontend improvements
    • assigned_to: nobody --> h_vogt
     
  • Holger Vogt

    Holger Vogt - 2012-12-13

    Henrik,

    I have looked into the source code:

    can be done, but there is no quick fix for this, it will need some reorganisation of initialising the random numbers. So it may take some time.

    Holger

     
  • Holger Vogt

    Holger Vogt - 2018-12-04
    • status: open --> closed
    • Group: --> Next Release (example)
     
  • Holger Vogt

    Holger Vogt - 2018-12-04

    variable rndseed has been replaced by command 'setseed' since ngspice-29. The command may be placed anywhere in the .control section.

     

Log in to post a comment.