jeudi 19 novembre 2015

unpredictableSeed at compile-time?

the value itself is not accepted:

/usr/include/dmd/phobos/std/random.d(1125,10): Error: static variable seeded cannot be read at compile time

Is there any compile-time alternative ? Context is an immutable-random-lookup-table generated at compile time with this in the declarations:

enum g = G(unpredictableSeed); // G = template param = Mt19937




Aucun commentaire:

Enregistrer un commentaire