fork download
  1. bool isSuccess(){
  2. import std.random;
  3. Mt19937 gen;
  4. string str = __DATE__ ~ __TIME__;
  5. uint hash;
  6. foreach (c; str){
  7. hash = (hash * 9) + c;
  8. }
  9. gen.seed(hash);
  10. return uniform(0, 2, gen) == 0;
  11. }
  12.  
  13. static assert(isSuccess(), "Somehow compilation failed.");
  14.  
  15. void main(){}
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty