Project

General

Profile

action #10434

Use predicatable strings in script_run

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2016-01-26
Due date:
% Done:

0%

Estimated time:
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 over 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 over 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 over 4 years ago

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

Also available in: Atom PDF