1tcl::chan::random(n)   Reflected/virtual channel support  tcl::chan::random(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tcl::chan::random - Random channel
9

SYNOPSIS

11       package require Tcl  8.5
12
13       package require TclOO
14
15       package require tcl::chan::events  ?1?
16
17       package require tcl::chan::random  ?1?
18
19       ::tcl::chan::random seed
20
21______________________________________________________________________________
22

DESCRIPTION

24       The  tcl::chan::random package provides a command creating random chan‐
25       nels, i.e. read-only  channels  which  return  an  infinite  stream  of
26       pseudo-random  characters  upon  reading. This is similar to the random
27       channels provided by the package Memchan, except that this  is  written
28       in  pure  Tcl, not C, and uses a much simpler generator as well. On the
29       other hand, Memchan is usable with Tcl 8.4  and  before,  whereas  this
30       package requires Tcl 8.5 or higher, and TclOO.
31
32       The  internal  TclOO  class  implementing the channel handler is a sub-
33       class of the tcl::chan::events framework.
34

API

36       ::tcl::chan::random seed
37              This command creates a new random channel and returns  its  han‐
38              dle.   The  seed is a list of integer numbers used to initialize
39              the internal feedback shift register of the generator.
40

BUGS, IDEAS, FEEDBACK

42       This document, and the package it describes, will  undoubtedly  contain
43       bugs  and other problems.  Please report such in the category virtchan‐
44       nel  of  the  Tcllib  Trackers  [http://core.tcl.tk/tcllib/reportlist].
45       Please  also  report any ideas for enhancements you may have for either
46       package and/or documentation.
47
48       When proposing code changes, please provide unified diffs, i.e the out‐
49       put of diff -u.
50
51       Note  further  that  attachments  are  strongly  preferred over inlined
52       patches. Attachments can be made by going  to  the  Edit  form  of  the
53       ticket  immediately  after  its  creation, and then using the left-most
54       button in the secondary navigation bar.
55

KEYWORDS

57       /dev/random, random, reflected channel, tip 219, virtual channel
58

CATEGORY

60       Channels
61
63       Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
64
65
66
67
68tcllib                                 1                  tcl::chan::random(n)
Impressum