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

NAME

8       tcl::randomseed - Utilities for random channels
9

SYNOPSIS

11       package require Tcl  8.5
12
13       package require TclOO
14
15       package require tcl::randomseed  ?1?
16
17       ::tcl::randomseed
18
19       ::tcl::combine seed1 seed2
20
21______________________________________________________________________________
22

DESCRIPTION

24       The  tcl::randomseed  package provides a a few utility commands to help
25       with the seeding of tcl::chan::random channels.
26

API

28       ::tcl::randomseed
29              This command creates returns a list of seed integers suitable as
30              seed  argument for random channels. The numbers are derived from
31              the process id, current time, and Tcl random number generator.
32
33       ::tcl::combine seed1 seed2
34              This command takes to seed lists and combines them into a single
35              list  by  XORing  them elementwise, modulo 256. If the lists are
36              not of equial length the shorter of the two is  padded  with  0s
37              before merging.
38

BUGS, IDEAS, FEEDBACK

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

KEYWORDS

55       /dev/random,  merge,  random, reflected channel, seed, tip 219, virtual
56       channel
57

CATEGORY

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