edu.harvard.deas.hyperenc
Class TestRandomSource
java.lang.Object
edu.harvard.deas.hyperenc.TestRandomSource
- All Implemented Interfaces:
- RandomSource, Serializable
public class TestRandomSource
- extends Object
- implements RandomSource
Source of random bits.
- See Also:
- Serialized Form
Method Summary |
void |
getPage(byte[] block,
byte[] page)
Fills page with random bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestRandomSource
public TestRandomSource()
getPage
public void getPage(byte[] block,
byte[] page)
throws PageException
- Description copied from interface:
RandomSource
- Fills
page
with random bytes. block
may be used
as a parameter that influences the creation of a page. Depending on
implementation, calling getPage
multiple times with the same
block
may not necessarily return the same page each time.
- Specified by:
getPage
in interface RandomSource
- Parameters:
block
- A buffer of random bytes used to create page.page
- Created page. This array will be mutated to contain the created
page.
- Throws:
PageException