Actions
action #10434
closedUse predicatable strings in script_run
Start date:
2016-01-26
Due date:
% Done:
0%
Estimated time:
Description
We used time() before and now use random_string() to mark unique strings in serial0. But both have the disadvantage that they pollute the
screen with unpredictable strings - and making it harder to needle.
One idea is to hash the command used - but we need to find a neat hash function returning a short string
Updated by dimstar almost 9 years ago
crc32 comes to mind - there is of course potential of collisions, but the resulting string is 8 chars long
Updated by okurz almost 9 years ago
The "pollution of screen" is a new issue, though, isn't it? Use something like git, sha1sum and take only first 6-8 characters?
Updated by coolo almost 9 years ago
- Status changed from New to Resolved
- Assignee set to coolo
- Target version set to Milestone 1
Actions