vial: use more entropy for determining whether to reset eeprom

This commit is contained in:
Ilya Zhuravlev
2020-12-19 21:51:11 -05:00
parent 10e15c09a4
commit 21bd0cdda0
3 changed files with 22 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import random
def main():
print("#define BUILD_ID ((uint32_t)0x{:08X})".format(random.randrange(0, 2 ** 24 - 1)))
if __name__ == "__main__":
main()