Skip to content

GSL PRNG seed: separate seeds for Libmboard and FLAME simulator, or a single one #13

@svdhoog

Description

@svdhoog

@shawnchin @sysfal @mariamkiran
Some issues related to the GSL PRNG seed:

1 Is it useful to have Limboard and the simulator use the same seed? Libmboard introduces randomness if you use the tag for message randomization in model.xml. Since Libmboard is executing on its own thread, it also initializes its own random seed. It currently uses srand() for this, which of course is not so good. I suppose that for reproducibility the same seed should be used for both Libmboard and the simulation, or both seeds should be stored in the 0.xml file.

2 Is it useful to have each agent have its own random seed? Or even initialize its own PRNG? This is an old discussion that Rob Axtell once brought up about synchronization effects if all agents use the same seed, and then essentially sample from the same random number sequence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions