edu.harvard.deas.hyperenc
Interface RandomSource

All Superinterfaces:
Serializable
All Known Implementing Classes:
TestRandomSource, VSatRandomSource

public interface RandomSource
extends Serializable

A source of random bits.


Method Summary
 void getPage(byte[] block, byte[] page)
          Fills page with random bytes.
 

Method Detail

getPage

void getPage(byte[] block,
             byte[] page)
             throws PageException
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.

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