commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r5617 - gnuradio/branches/developers/eb/ibu/usrp/host/


From: eb
Subject: [Commit-gnuradio] r5617 - gnuradio/branches/developers/eb/ibu/usrp/host/lib/inband
Date: Sat, 2 Jun 2007 18:05:15 -0600 (MDT)

Author: eb
Date: 2007-06-02 18:05:15 -0600 (Sat, 02 Jun 2007)
New Revision: 5617

Modified:
   gnuradio/branches/developers/eb/ibu/usrp/host/lib/inband/gen_test_packets.py
Log:
make test packets deterministic

Modified: 
gnuradio/branches/developers/eb/ibu/usrp/host/lib/inband/gen_test_packets.py
===================================================================
--- 
gnuradio/branches/developers/eb/ibu/usrp/host/lib/inband/gen_test_packets.py    
    2007-06-02 23:46:53 UTC (rev 5616)
+++ 
gnuradio/branches/developers/eb/ibu/usrp/host/lib/inband/gen_test_packets.py    
    2007-06-03 00:05:15 UTC (rev 5617)
@@ -83,5 +83,6 @@
     assert pkt_gen_1.next() == 16002    # 2*sum(1, 2, ..., 126) == 126 * 127
 
 if __name__ == '__main__':
+    random.seed(0)
     
gen_all_valid_packet_lengths_1_channel(open("all_valid_packet_lengths_1_channel.dat",
 "w"))
     
gen_all_valid_packet_lengths_2_channels(open("all_valid_packet_lengths_2_channels.dat",
 "w"))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]