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:
Gilbert Clark gc355804@ohio.edu 2011-08-08 22:12:40 -07:00
parent f36310dc0e
commit 9322c063cc
10 changed files with 78 additions and 21 deletions

View file

@ -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-");

View file

@ -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-");

View file

@ -1,4 +1,5 @@
[btest]
ProfileDir = profiles
TestDirs = doc bifs language core policy istate
TmpDir = %(testbase)s/.tmp
BaselineDir = %(testbase)s/Baseline

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash