Project

General

Profile

Actions

action #10434

closed

Use predicatable strings in script_run

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
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

Actions #1

Updated by dimstar about 8 years ago

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

Actions #2

Updated by okurz about 8 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?

Actions #3

Updated by coolo about 8 years ago

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

Also available in: Atom PDF