action #10434

Use predicatable strings in script_run

Added by coolo about 4 years ago. Updated about 4 years ago.

Status:ResolvedStart date:26/01/2016
Priority:NormalDue date:
Assignee:coolo% Done:

0%

Category:Feature requests
Target version:Milestone 1
Difficulty:
Duration:

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

History

#1 Updated by dimstar about 4 years ago

crc32 comes to mind - there is of course potential of collisions, but the resulting string is 8 chars long

#2 Updated by okurz about 4 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?

#3 Updated by coolo about 4 years ago

  • Status changed from New to Resolved
  • Assignee set to coolo
  • Target version set to Milestone 1

Also available in: Atom PDF