FileDocCategorySizeDatePackage
RandomImpl.javaAPI DocAndroid 1.5 API1758Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support

RandomImpl

public class RandomImpl extends SecureRandomSpi
Test implementation of SecureRandom

Fields Summary
public static boolean
runEngineGenerateSeed
public static boolean
runEngineNextBytes
public static boolean
runEngineSetSeed
Constructors Summary
Methods Summary
protected byte[]engineGenerateSeed(int numBytes)

        runEngineGenerateSeed = true;
        byte[] b = new byte[numBytes];
        for (int i = 0; i < b.length; i++) {
            b[i] = (byte)i;
        }
        return b;
    
protected voidengineNextBytes(byte[] bytes)

        runEngineNextBytes = true;
        for (int i = 0; i < bytes.length; i++) {
            bytes[i] = (byte)(i + 0xF1);
        }
    
protected voidengineSetSeed(byte[] seed)

    
        
        runEngineSetSeed = true;