[Top] [Prev] [Next]

randomint, randombuf - interface to random number device

include "security.m"; Random : module { PATH: con "/dis/lib/random.dis"; randomint: fn(): int; randombuf: fn(buf:array of byte, n: int); int; }

Description

The Random module provides a convenient interface to /dev/random, a part of the console driver.
randomint()

Return a random integer value.

randombuf(buf,n)

Initialize array buf with n random bytes.

See Also

random (read-only) of cons - console device in Chapter 2

The /dev/random file is implemented as part of the console device.



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.