Moving Forward
I built 7 database tables last night and wrote a Ruby script to configure the number of random bits to read and associated error diffusion for a range of outcomes from 2-255. The database tables are:
- RandomSvce_Seeds
- RandomSvce_BitPools
- RandomSvce_Statistics
- DiceSvce_Dice
- DiceSvce_Users
- DiceSvce_RequestSpaces
- DiceSvce_Logs
DiceSvce_Dice is the table that contains the number of bits to read and the error diffusion information. Tonight, I shall populate the seeds and test the bit pool generation code. The seeds already exist and the bit pool generation has already been tested in another form. That script writes the generated bits into separate files. The new version needs to store them in a database table.
I have code written to read random bits from a bit pool file. The database version will reside in the database itself as a stored function and take advantage of application advisory locks. At least, that’s the plan at the moment.