Generate deterministic output
See original GitHub issueSince we’re using the current date for id
s of the graphs in the SVG output, we can’t generate a deterministic output and thus we can’t use automated tools to check whether those graph have changed (by just diff
ing the output)
It was changed here: https://github.com/knsv/mermaid/commit/5b6dfb01a6a3d458893c71249b9e9e7c5a911140 Is there any specific reason to do that? Can we revert that commit or find any other solution? Maybe make this configurable?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
deterministic output - Informatica Documentation
Source or transformation output that does not change between session runs when the input data is consistent between runs.
Read more >Deterministic algorithm - Wikipedia
In computer science, a deterministic algorithm is an algorithm that, given a particular input, will always produce the same output, with the underlying ......
Read more >How to Create Deterministic Guids - Stack Overflow
You need to make a distinction between instances of the class Guid , and identifiers that are globally unique. A "deterministic guid" is...
Read more >C# Compiler Options - code generation options | Microsoft Learn
Deterministic compilation can be used for establishing whether a binary is compiled from a trusted source. Deterministic output can be useful ...
Read more >Deterministic Tensorflow Part 1: Model Training - jackd
Determinism : our programs should produce exactly the same outputs for the same inputs. Pre-emptibility: our programs should be able to be ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have added a PR here: https://github.com/mermaid-js/mermaid/pull/1787
Please give some feedback. The
Date.now()
Ids are getting annoying in our setup where prior to each release an SVG is generated and checked into git. Right now the SVG needs to be overwritten every time.So I added this feature PR.
As a side, the ID could start at some pseudorandom point, determined by the user, or the Base64 string that is given.