randomness.java

来自「基于LWVCL开发的库」· Java 代码 · 共 45 行

JAVA
45
字号
/* * Randomness.java * * Copyright (c) 2004 The University of Utah and the Flux Group. * All rights reserved. * * This file is licensed under the terms of the GNU Public License. * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * Contributed by the Flux Research Group, Department of Computer Science, * University of Utah, http://www.cs.utah.edu/flux/ */package org.kaffe.security;/** * Base class for implementations of initial sources of randomness. */public abstract class Randomness{	/**	 * Construct an empty Randomness object.	 */	public Randomness()	{	}		/**	 * Fill the given array with some random bits.	 *	 * @param bits The array to fill with random bits.	 */	public abstract void fill(byte bits[], int offset, int length);	/**	 * @see java.lang.Object#toString()	 */	public String toString()	{		return "Randomness["			+ "]";	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?