mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Some working code. Adds UID pools classified by string. Just compiles
and runs; need to go back through and make sure this code is actually doing what I want it to do. Note: Added new function unique_id_from(pool: string, prefix: string) that allows the user to explicitly specify a randomness pool to use when generating unique IDs.
This commit is contained in:
parent
f36310dc0e
commit
9322c063cc
10 changed files with 78 additions and 21 deletions
|
@ -7,3 +7,6 @@
|
|||
print unique_id("A-");
|
||||
print unique_id("B-");
|
||||
print unique_id("C-");
|
||||
print unique_id_from("alpha", "D-");
|
||||
print unique_id_from("beta", "E-");
|
||||
print unique_id_from("beta", "F-");
|
||||
|
|
|
@ -5,3 +5,6 @@
|
|||
print unique_id("A-");
|
||||
print unique_id("B-");
|
||||
print unique_id("C-");
|
||||
print unique_id_from("alpha", "D-");
|
||||
print unique_id_from("beta", "E-");
|
||||
print unique_id_from("beta", "F-");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[btest]
|
||||
ProfileDir = profiles
|
||||
TestDirs = doc bifs language core policy istate
|
||||
TmpDir = %(testbase)s/.tmp
|
||||
BaselineDir = %(testbase)s/Baseline
|
||||
|
|
2
testing/btest/profiles/default/finish
Executable file
2
testing/btest/profiles/default/finish
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
|
2
testing/btest/profiles/default/setup
Executable file
2
testing/btest/profiles/default/setup
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
|
2
testing/btest/profiles/default/supported
Executable file
2
testing/btest/profiles/default/supported
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
|
2
testing/btest/profiles/default/transform
Executable file
2
testing/btest/profiles/default/transform
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue