jeff.schroeder 0 Posted March 12, 2019 Report Share Posted March 12, 2019 In uvm_create_random_seed() (in uvm_misc.svh) is the following code that returns different seed values for a given {type_id, inst_id}: seed_map.seed_table[type_id] = seed_map.seed_table[type_id]+seed_map.count[type_id]; seed_map.count[type_id]++; return seed_map.seed_table[type_id]; The problem is that this can return a seed of 0, which is not a valid seed value to srandom(). Am I missing something, or is this really a bug? Thanks, Jeff Schroeder Quote Link to post Share on other sites
dave_59 34 Posted March 13, 2019 Report Share Posted March 13, 2019 Where did you read 0 is not a valid seed? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.